From 5064ee6dcf0156b1506fc36a3e7befaa5979d90e Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Tue, 10 Dec 2024 17:37:39 +0530 Subject: [PATCH] code refactored. Signed-off-by: Gaurav Goel --- ios/Classes/SwiftWeb3AuthFlutterPlugin.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/Classes/SwiftWeb3AuthFlutterPlugin.swift b/ios/Classes/SwiftWeb3AuthFlutterPlugin.swift index 5e7ac30..5c1a01f 100644 --- a/ios/Classes/SwiftWeb3AuthFlutterPlugin.swift +++ b/ios/Classes/SwiftWeb3AuthFlutterPlugin.swift @@ -156,6 +156,7 @@ public class SwiftWeb3AuthFlutterPlugin: NSObject, FlutterPlugin { let enableMFAResult = try await web3auth?.enableMFA() result(enableMFAResult) } + return } catch { result(FlutterError( code: "enableMFAFailedException", @@ -192,7 +193,7 @@ public class SwiftWeb3AuthFlutterPlugin: NSObject, FlutterPlugin { code: "RequestFailedFailedException", message: "Web3Auth request launch failed", details: error.localizedDescription)) - return + return } case "getUserInfo": var resultMap: String = ""