diff --git a/src/main/java/com/google/devtools/build/lib/authandtls/credentialhelper/CredentialHelper.java b/src/main/java/com/google/devtools/build/lib/authandtls/credentialhelper/CredentialHelper.java index cf15e0f917c35a..d493dac75a1e31 100644 --- a/src/main/java/com/google/devtools/build/lib/authandtls/credentialhelper/CredentialHelper.java +++ b/src/main/java/com/google/devtools/build/lib/authandtls/credentialhelper/CredentialHelper.java @@ -82,12 +82,8 @@ public GetCredentialsResponse getCredentials(CredentialHelperEnvironment environ GSON.toJson(GetCredentialsRequest.newBuilder().setUri(uri).build(), stdin); } catch (IOException e) { // This can happen if the helper prints a static set of credentials without reading from - // stdin (e.g., with a simple shell script running `echo "{...}"`). If the process is - // already finished even though we failed to write to its stdin, ignore the error and - // assume the process did not need the request payload. - if (!process.finished()) { - throw e; - } + // stdin (e.g., with a simple shell script running `echo "{...}"`). This is fine to + // ignore. } try {