Skip to content

Commit

Permalink
refactor: sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammerlo committed May 3, 2024
1 parent 36f1be1 commit 04f298e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ private String convert(CertificateType model) {
if (model == null) {
return null;
} else {
return model.equals(CertificateType.STAKE_REGISTRATION)
? OperationType.STAKE_KEY_REGISTRATION.getValue() :
model.equals(CertificateType.STAKE_DEREGISTRATION)
? OperationType.STAKE_KEY_DEREGISTRATION.getValue() : null;
if(model.equals(CertificateType.STAKE_REGISTRATION)) {
return OperationType.STAKE_KEY_REGISTRATION.getValue();
} else {
return model.equals(CertificateType.STAKE_DEREGISTRATION)
? OperationType.STAKE_KEY_DEREGISTRATION.getValue() : null;
}
}
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public class ProtocolParams {

private BigInteger minPoolCost; //16
private BigInteger adaPerUtxoByte; //17
//private String nonce;

//Alonzo changes
private Map<String, long[]> costModels; //18
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public class ProtocolParamsEntity {

private BigInteger minPoolCost; //16
private BigInteger adaPerUtxoByte; //17
//private String nonce;

//Alonzo changes
private Map<String, long[]> costModels; //18
Expand Down

0 comments on commit 04f298e

Please sign in to comment.