Skip to content

Commit b216385

Browse files
committed
remove redundant if user check
1 parent 6bd76c5 commit b216385

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

android/src/main/java/io/fullstack/firestack/FirestackAuth.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,9 @@ public void onComplete(@NonNull Task<GetTokenResult> task) {
534534
if (task.isSuccessful()) {
535535
WritableMap msgMap = Arguments.createMap();
536536
WritableMap userMap = getUserMap();
537-
if (FirestackAuthModule.this.user != null) {
538-
final String token = task.getResult().getToken();
539-
userMap.putString("token", token);
540-
userMap.putBoolean("anonymous", false);
541-
}
537+
final String token = task.getResult().getToken();
538+
userMap.putString("token", token);
539+
userMap.putBoolean("anonymous", false);
542540
msgMap.putMap("user", userMap);
543541
callback.invoke(null, msgMap);
544542
} else {

0 commit comments

Comments
 (0)