From 717b1473b39523a2f824bebb65f07b1598ee28c5 Mon Sep 17 00:00:00 2001 From: Jim Anderson Date: Fri, 15 Dec 2023 10:32:35 -0600 Subject: [PATCH] temporary change to investigate codecov report --- src/main/java/com/auth0/RandomStorage.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/auth0/RandomStorage.java b/src/main/java/com/auth0/RandomStorage.java index 1d5017d..f9510bb 100644 --- a/src/main/java/com/auth0/RandomStorage.java +++ b/src/main/java/com/auth0/RandomStorage.java @@ -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); } }