diff --git a/google/internal/externalaccount/executablecredsource.go b/google/internal/externalaccount/executablecredsource.go index 6e79b90..473118e 100644 --- a/google/internal/externalaccount/executablecredsource.go +++ b/google/internal/externalaccount/executablecredsource.go @@ -89,7 +89,7 @@ var runCommand = func(ctx context.Context, command string, env []string) ([]byte return response, nil } - if ctx.Err() != nil && errors.Is(ctx.Err(), context.DeadlineExceeded) { + if ctx.Err() == context.DeadlineExceeded { return nil, timeoutError() }