From c99011ceacf92d9eaae3e58fdd2b797c68fab8b6 Mon Sep 17 00:00:00 2001 From: Nithin Nayak Sujir Date: Fri, 17 Aug 2018 10:24:38 -0700 Subject: [PATCH] Properly close snippet pubsub_subscriber_custom_credentials snippets.go fails and exits due to snippet pubsub_subscriber_custom_credentials not being closed. $ go run utilities/snippets.go . snippet: [START google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriberSnippets.java]:178 snippet "pubsub_subscriber_custom_credentials" not closed exit status 1 Rename the 2nd START to END to correct the typo. --- .../cloud/examples/pubsub/snippets/SubscriberSnippets.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriberSnippets.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriberSnippets.java index 642d571f67d0..b31862a690b5 100644 --- a/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriberSnippets.java +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/SubscriberSnippets.java @@ -184,7 +184,7 @@ private Subscriber createSubscriberWithCustomCredentials() throws Exception { Subscriber.newBuilder(subscriptionName, receiver) .setCredentialsProvider(credentialsProvider) .build(); - // [START pubsub_subscriber_custom_credentials] + // [END pubsub_subscriber_custom_credentials] return subscriber; }