Skip to content

Commit

Permalink
refactor: implemented comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammerlo committed May 3, 2024
1 parent 04f298e commit 47d0c37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ private String convert(CertificateType model) {
if (model == null) {
return null;
} else {
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;
}
return switch (model) {
case CertificateType.STAKE_REGISTRATION -> OperationType.STAKE_KEY_REGISTRATION.getValue();
case CertificateType.STAKE_DEREGISTRATION -> OperationType.STAKE_KEY_DEREGISTRATION.getValue();
default -> null;
};
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class CustomResponseBodyAdviceAdapter implements ResponseBodyAdvice<Objec

final LoggingService loggingService;

@Override
public boolean supports(MethodParameter methodParameter, Class<? extends HttpMessageConverter<?>> aClass) {
return true;
}
Expand Down

0 comments on commit 47d0c37

Please sign in to comment.