diff --git a/core/src/main/java/bisq/core/support/dispute/agent/DisputeAgentService.java b/core/src/main/java/bisq/core/support/dispute/agent/DisputeAgentService.java index ec5bdcd0..5c85bdae 100644 --- a/core/src/main/java/bisq/core/support/dispute/agent/DisputeAgentService.java +++ b/core/src/main/java/bisq/core/support/dispute/agent/DisputeAgentService.java @@ -110,10 +110,8 @@ public abstract class DisputeAgentService { Map map = new HashMap<>(); for (T disputeAgent : disputeAgentSet) { NodeAddress disputeAgentNodeAddress = disputeAgent.getNodeAddress(); - if (!map.containsKey(disputeAgentNodeAddress)) - map.put(disputeAgentNodeAddress, disputeAgent); - else - log.warn("disputeAgentAddress already exists in disputeAgent map. Seems a disputeAgent object is already registered with the same address."); + if (map.containsKey(disputeAgentNodeAddress)) log.warn("disputeAgentAddress already exists in disputeAgent map. Seems a disputeAgent object is already registered with the same address."); + map.put(disputeAgentNodeAddress, disputeAgent); } return map; }