Skip to content

Commit

Permalink
temporary change to investigate codecov report
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed Dec 15, 2023
1 parent f598974 commit 717b147
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/auth0/RandomStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ class RandomStorage extends SessionUtils {
*/
static boolean checkSessionState(HttpServletRequest req, String state) {
String currentState = (String) remove(req, StorageUtils.STATE_KEY);
if (currentState == null && state == null) {
return true;
if (currentState == null) {
return state == null;
} else {
return (currentState != null && currentState.equals(state));
return currentState.equals(state);
}
}

Expand Down

0 comments on commit 717b147

Please sign in to comment.