Ignore codacy complaint about (dead) default switch labels

This commit is contained in:
ghubstan 2020-10-02 15:10:13 -03:00
parent 631c3f4f12
commit 033271189f
No known key found for this signature in database
GPG key ID: E35592D6800A861E

View file

@ -99,11 +99,6 @@ class CoreDisputeAgentsService {
ecKey = refundAgentManager.getRegistrationKey(registrationKey);
signature = refundAgentManager.signStorageSignaturePubKey(Objects.requireNonNull(ecKey));
registerRefundAgent(nodeAddress, languageCodes, ecKey, signature);
return;
default:
// Codacy requires default label in switch, Intellij does not.
//noinspection UnnecessaryReturnStatement
return;
}
} else {
throw new IllegalArgumentException("unknown dispute agent type " + disputeAgentTypeString);