diff --git a/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java b/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java index 305353f79..0fa31870f 100644 --- a/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java +++ b/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java @@ -139,7 +139,6 @@ private ComputeEngineCredentials(ComputeEngineCredentials.Builder builder) { getFromServiceLoader(HttpTransportFactory.class, OAuth2Utils.HTTP_TRANSPORT_FACTORY)); this.transportFactoryClassName = this.transportFactory.getClass().getName(); - Collection scopes = builder.getScopes(); // Use defaultScopes only when scopes don't exist. Collection scopesToUse = builder.scopes; if (scopesToUse == null || scopesToUse.isEmpty()) {