Skip to content

Commit

Permalink
more style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Dec 2, 2015
1 parent 18cbb77 commit 942ceb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public boolean equals(Object obj) {
}

@Override
public GoogleCredentials credentials() {
public ServiceAccountCredentials credentials() {
return new ServiceAccountCredentials(null, account, privateKey, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,7 @@ public URL signUrl(BlobInfo blobInfo, long duration, TimeUnit unit, SignUrlOptio
}
ServiceAccountAuthCredentials authCred =
(ServiceAccountAuthCredentials) optionMap.get(SignUrlOption.Option.SERVICE_ACCOUNT_CRED);
ServiceAccountCredentials cred =
(ServiceAccountCredentials) (authCred != null ? authCred.credentials() : null);
ServiceAccountCredentials cred = authCred != null ? authCred.credentials() : null;
if (authCred == null) {
checkArgument(
this.options().authCredentials() != null
Expand Down

0 comments on commit 942ceb4

Please sign in to comment.