Skip to content

Commit 247d277

Browse files
committed
correct continueWith to continueWithTask, fixes #60
1 parent 76fba6c commit 247d277

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/google/firebase/auth/FirebaseAuth.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,8 @@ class FirebaseAuth constructor(
369369
setResult = { responseBody ->
370370
FirebaseUserImpl(app, jsonParser.parseToJsonElement(responseBody).jsonObject)
371371
}
372-
).task.continueWith {
373-
updateByGetAccountInfo()
374-
}
375-
return source.result
372+
)
373+
return source.task.continueWithTask { updateByGetAccountInfo() }
376374
}
377375

378376
private fun updateByGetAccountInfo(): Task<AuthResult> {

0 commit comments

Comments
 (0)