Skip to content

Commit 3129d6d

Browse files
author
Manny Jimenez
committed
Removing sign in tester from checkForNewRelease
1 parent 2db9b55 commit 3129d6d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/FirebaseAppDistribution.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,15 @@ public synchronized Task<AppDistributionRelease> checkForNewRelease() {
252252
LogWrapper.getInstance().v("Response in progress");
253253
return cachedCheckForNewReleaseTask;
254254
}
255+
if (!isTesterSignedIn()) {
256+
return Tasks.forException(
257+
new FirebaseAppDistributionException(
258+
Constants.ErrorMessages.AUTHENTICATION_ERROR, AUTHENTICATION_FAILURE));
259+
}
260+
255261
cachedCheckForNewReleaseTask =
256-
signInTester()
257-
.onSuccessTask(unused -> this.newReleaseFetcher.checkForNewRelease())
262+
this.newReleaseFetcher
263+
.checkForNewRelease()
258264
.onSuccessTask(
259265
appDistributionReleaseInternal -> {
260266
setCachedNewRelease(appDistributionReleaseInternal);

0 commit comments

Comments
 (0)