Skip to content

Commit

Permalink
Address PR suggestion (minor refactoring)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marccio Silva committed Jun 10, 2021
1 parent e67154b commit 6e6e16d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public int getHttpStatusCode(int resultCode) {
HttpResponseStatus.OK.code();
}

private boolean isBadRequestResultCode(int resultCode) {
private static boolean isBadRequestResultCode(int resultCode) {
return BAD_REQUEST_JSON_ERRORS.contains(resultCode);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

public class Web3ResultHttpResponseHandler extends SimpleChannelInboundHandler<Web3Result> {

private HttpStatusCodeProvider httpStatusCodeProvider;
private final HttpStatusCodeProvider httpStatusCodeProvider;

public Web3ResultHttpResponseHandler(HttpStatusCodeProvider httpStatusCodeProvider) {
this.httpStatusCodeProvider = httpStatusCodeProvider;
Expand Down

0 comments on commit 6e6e16d

Please # to comment.