Skip to content

Commit c161df9

Browse files
authored
fix(auth): Remove duplicate AtomicResult (#1133)
* Remove duplicate AtomicResult * Rename result
1 parent 62c0b9b commit c161df9

File tree

1 file changed

+2
-3
lines changed
  • packages/amplify_auth_cognito/android/src/main/kotlin/com/amazonaws/amplify/amplify_auth_cognito/device

1 file changed

+2
-3
lines changed

packages/amplify_auth_cognito/android/src/main/kotlin/com/amazonaws/amplify/amplify_auth_cognito/device/DeviceHandler.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ class DeviceHandler(private val errorHandler: AuthErrorHandler) :
4949
private val scope = CoroutineScope(Dispatchers.IO) + CoroutineName("DeviceHandler")
5050

5151
@Suppress("UNCHECKED_CAST")
52-
override fun onMethodCall(call: MethodCall, _result: MethodChannel.Result) {
53-
val result = AtomicResult(_result, call.method)
52+
override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
5453
when (call.method) {
5554
"fetchDevices" -> fetchDevices(result)
5655
"rememberDevice" -> rememberDevice(result)
@@ -116,4 +115,4 @@ class DeviceHandler(private val errorHandler: AuthErrorHandler) :
116115
}
117116
}
118117
}
119-
}
118+
}

0 commit comments

Comments
 (0)