mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Revert "Fix 'switch statements should have a default label' codacy problem"
This reverts commit 50d4b9f5e1
.
Back out codacy fix; it did not work.
This commit is contained in:
parent
50d4b9f5e1
commit
d9ece9f5ba
1 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,7 @@ class CoreDisputeAgentsService {
|
|||
if (disputeAgentType.isPresent()) {
|
||||
ECKey ecKey;
|
||||
String signature;
|
||||
DisputeAgentType validDisputeAgentType = disputeAgentType.get();
|
||||
switch (validDisputeAgentType) {
|
||||
switch ((disputeAgentType.get())) {
|
||||
case ARBITRATOR:
|
||||
throw new IllegalArgumentException("arbitrators must be registered in a Bisq UI");
|
||||
case MEDIATOR:
|
||||
|
@ -100,6 +99,7 @@ class CoreDisputeAgentsService {
|
|||
ecKey = refundAgentManager.getRegistrationKey(registrationKey);
|
||||
signature = refundAgentManager.signStorageSignaturePubKey(Objects.requireNonNull(ecKey));
|
||||
registerRefundAgent(nodeAddress, languageCodes, ecKey, signature);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
throw new IllegalArgumentException("unknown dispute agent type " + disputeAgentTypeString);
|
||||
|
|
Loading…
Add table
Reference in a new issue