Skip to content

Commit b5aea47

Browse files
committed
Fix onSuccessUpdateTask
1 parent b2b29f9 commit b5aea47

File tree

1 file changed

+9
-8
lines changed
  • firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl

1 file changed

+9
-8
lines changed

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/TaskUtils.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,15 @@ static <T> UpdateTask onSuccessUpdateTask(
132132
Task<T> task, Executor executor, UpdateTaskContinuation<T> continuation) {
133133
UpdateTaskImpl updateTask = new UpdateTaskImpl();
134134
task.addOnSuccessListener(
135-
executor,
136-
result -> {
137-
try {
138-
updateTask.shadow(continuation.then(result));
139-
} catch (Throwable t) {
140-
updateTask.setException(FirebaseAppDistributionExceptions.wrap(t));
141-
}
142-
});
135+
executor,
136+
result -> {
137+
try {
138+
updateTask.shadow(continuation.then(result));
139+
} catch (Throwable t) {
140+
updateTask.setException(FirebaseAppDistributionExceptions.wrap(t));
141+
}
142+
})
143+
.addOnFailureListener(executor, updateTask::setException);
143144
return updateTask;
144145
}
145146

0 commit comments

Comments
 (0)