Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo04 committed Sep 1, 2021
1 parent 77e6375 commit b393495
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static AuthException exceptionForStatusCode(int statusCode) {

public static AuthException exceptionForStatusCode(int statusCode, Throwable cause){
String message = cause != null && cause.getMessage() != null ? cause.getMessage().toLowerCase() : "";

if (statusCode == 409) {
return new AuthException(FailureType.EXISTING_ACCOUNT, EXISTING_USER_FAILURE_MESSAGE, cause);
} else if (statusCode == 403 && Objects.equals(message, VERIFICATION_REQUIRED_BODY)) {
Expand Down

0 comments on commit b393495

Please sign in to comment.