Skip to content

Commit

Permalink
revert RandomStorage checkSessionState changes to original (changes m…
Browse files Browse the repository at this point in the history
…ade to inspect coverage warnings)
  • Loading branch information
jimmyjames committed Dec 15, 2023
1 parent 33b913a commit 4c89611
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/com/auth0/RandomStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ class RandomStorage extends SessionUtils {
*/
static boolean checkSessionState(HttpServletRequest req, String state) {
String currentState = (String) remove(req, StorageUtils.STATE_KEY);
if (currentState == null) {
return state == null;
} else {
return currentState.equals(state);
}
return (currentState == null && state == null) || currentState != null && currentState.equals(state);
}

/**
Expand Down

0 comments on commit 4c89611

Please sign in to comment.