Skip to content

Commit 067b1df

Browse files
committed
code cleanup from unintentional formatting changes
1 parent ebc6a2d commit 067b1df

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

auth/src/main/java/com/google/cloud/auth/samples/AuthExample.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
import java.io.FileInputStream;
3232
import java.io.IOException;
3333

34-
/** Demonstrate various ways to authenticate requests using Cloud Storage/Language APIs as
35-
* examples.
34+
/**
35+
* Demonstrate various ways to authenticate requests using Cloud Storage/Language APIs as examples.
3636
*/
3737
public class AuthExample {
3838
// [START auth_cloud_implicit]
@@ -53,9 +53,8 @@ static void authImplicit() {
5353
static void authExplicit(String jsonPath) throws IOException {
5454
// You can specify a credential file by providing a path to GoogleCredentials.
5555
// Otherwise credentials are read from the GOOGLE_APPLICATION_CREDENTIALS environment variable.
56-
GoogleCredentials credentials =
57-
GoogleCredentials.fromStream(new FileInputStream(jsonPath))
58-
.createScoped(Lists.newArrayList("https://www.googleapis.com/auth/cloud-platform"));
56+
GoogleCredentials credentials = GoogleCredentials.fromStream(new FileInputStream(jsonPath))
57+
.createScoped(Lists.newArrayList("https://www.googleapis.com/auth/cloud-platform"));
5958
Storage storage = StorageOptions.newBuilder().setCredentials(credentials).build().getService();
6059

6160
System.out.println("Buckets:");

0 commit comments

Comments
 (0)