Skip to content

Commit ebfc17d

Browse files
committed
feat: code cleanup
Signed-off-by: Gaurav Goel <[email protected]>
1 parent 68ca3e4 commit ebfc17d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/com/web3auth/core/Web3Auth.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
7676
web3AuthOptions.clientId, web3AuthOptions.web3AuthNetwork, null,
7777
0, true
7878
)
79-
//network = web3AuthOptions.web3AuthNetwork
8079
torusUtils = TorusUtils(torusOptions)
8180
SharedPrefsHelper.init(context.applicationContext)
8281
val isSFAValue = SharedPrefsHelper.getBoolean(IS_SFA)
@@ -519,7 +518,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
519518
val isUpgraded = retrieveSharesResponse.metadata?.isUpgraded
520519

521520
if (isUpgraded == true) {
522-
//throw Exception(Web3AuthError.getError(ErrorCode.USER_ALREADY_ENABLED_MFA))
521+
throw Exception(Web3AuthError.getError(ErrorCode.USER_ALREADY_ENABLED_MFA))
523522
}
524523

525524
return retrieveSharesResponse

0 commit comments

Comments
 (0)