Skip to content

Commit

Permalink
feat: code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Goel <[email protected]>
  • Loading branch information
grvgoel81 authored and Gaurav Goel committed Sep 23, 2024
1 parent 59aab57 commit 63fc54f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ class SingleFactorAuth(
fun logout(context: Context): CompletableFuture<Boolean> {
val logoutCF = CompletableFuture<Boolean>()
sessionManager.invalidateSession(context).whenComplete { res, err ->
if (err != null) {
logoutCF.completeExceptionally(err)
} else {
if (res) {
logoutCF.complete(res)
} else {
logoutCF.completeExceptionally(Exception(ErrorCode.SOMETHING_WENT_WRONG.toString()))
}
}
return logoutCF
Expand Down

0 comments on commit 63fc54f

Please sign in to comment.