Skip to content

Commit

Permalink
Fix missing break in error switch case
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomazFB committed Oct 19, 2023
1 parent 55578b2 commit 100eb07
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private void handleAuthError(AuthenticationErrorType error, String errorMessage)
} else {
setState(LoginStep.FAILURE_2FA);
}

break;
case NEEDS_SECURITY_KEY:
// login credentials were correct anyway so, offer to save to SmartLock
signalCredentialsOK();
Expand All @@ -313,7 +313,6 @@ private void handleAuthError(AuthenticationErrorType error, String errorMessage)
} else {
setState(LoginStep.FAILURE_SECURITY_KEY);
}

break;
case EMAIL_LOGIN_NOT_ALLOWED:
setState(LoginStep.FAILURE_USE_WPCOM_USERNAME_INSTEAD_OF_EMAIL);
Expand Down

0 comments on commit 100eb07

Please sign in to comment.