Skip to content

Commit 942ceb4

Browse files
author
Ajay Kannan
committed
more style fixes
1 parent 18cbb77 commit 942ceb4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

gcloud-java-core/src/main/java/com/google/gcloud/AuthCredentials.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public boolean equals(Object obj) {
177177
}
178178

179179
@Override
180-
public GoogleCredentials credentials() {
180+
public ServiceAccountCredentials credentials() {
181181
return new ServiceAccountCredentials(null, account, privateKey, null, null);
182182
}
183183

gcloud-java-storage/src/main/java/com/google/gcloud/storage/StorageImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,7 @@ public URL signUrl(BlobInfo blobInfo, long duration, TimeUnit unit, SignUrlOptio
562562
}
563563
ServiceAccountAuthCredentials authCred =
564564
(ServiceAccountAuthCredentials) optionMap.get(SignUrlOption.Option.SERVICE_ACCOUNT_CRED);
565-
ServiceAccountCredentials cred =
566-
(ServiceAccountCredentials) (authCred != null ? authCred.credentials() : null);
565+
ServiceAccountCredentials cred = authCred != null ? authCred.credentials() : null;
567566
if (authCred == null) {
568567
checkArgument(
569568
this.options().authCredentials() != null

0 commit comments

Comments
 (0)