From e71428b1b8c08b03cac1c21b0842fda1ee166ab4 Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Tue, 24 Sep 2024 13:33:05 +0530 Subject: [PATCH] feat: Code cleanup Signed-off-by: Gaurav Goel --- .../com/web3auth/session_manager_android/SessionManager.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/session-manager-android/src/main/java/com/web3auth/session_manager_android/SessionManager.kt b/session-manager-android/src/main/java/com/web3auth/session_manager_android/SessionManager.kt index c94b03a..3ad188b 100644 --- a/session-manager-android/src/main/java/com/web3auth/session_manager_android/SessionManager.kt +++ b/session-manager-android/src/main/java/com/web3auth/session_manager_android/SessionManager.kt @@ -289,9 +289,7 @@ class SessionManager(context: Context, sessionTime: Int = 86400, allowedOrigin: } } - if (result.isSuccessful) { - // do nothing - } else { + if (!result.isSuccessful) { throw Exception( SessionManagerError.getError( ErrorCode.SOMETHING_WENT_WRONG