aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/remote/ByteStreamUploader.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/ByteStreamUploader.java b/src/main/java/com/google/devtools/build/lib/remote/ByteStreamUploader.java
index aa8f9b529a..7f60e1407f 100644
--- a/src/main/java/com/google/devtools/build/lib/remote/ByteStreamUploader.java
+++ b/src/main/java/com/google/devtools/build/lib/remote/ByteStreamUploader.java
@@ -39,7 +39,6 @@ import io.grpc.Channel;
import io.grpc.ClientCall;
import io.grpc.Metadata;
import io.grpc.Status;
-import io.grpc.Status.Code;
import io.grpc.StatusException;
import java.io.IOException;
import java.util.ArrayList;
@@ -353,7 +352,7 @@ final class ByteStreamUploader {
@Override
public void onClose(Status status, Metadata trailers) {
- if (status.isOk() || Code.ALREADY_EXISTS.equals(status.getCode())) {
+ if (status.isOk()) {
listener.success();
} else {
listener.failure(status);