Codacy requires default label in switch

This commit is contained in:
ghubstan 2020-09-28 09:38:08 -03:00
parent d9ece9f5ba
commit f3761530b5
No known key found for this signature in database
GPG key ID: E35592D6800A861E

View file

@ -100,6 +100,10 @@ class CoreDisputeAgentsService {
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);