Skip to content

Commit 853233b

Browse files
tswastjabubake
authored andcommitted
Remove extra end region tag. (#660)
The removed region tag caused the sample to end too early. It should have the full function definition, but especially the end of the try block.
1 parent de6a65b commit 853233b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

flexible/pubsub/src/main/java/com/example/flexible/pubsub/PubSubPublish.java

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp)
5151
publisher.publish(pubsubMessage);
5252
// redirect to home page
5353
resp.sendRedirect("/");
54-
// [END publish]
5554
} catch (Exception e) {
5655
resp.sendError(HttpStatus.SC_INTERNAL_SERVER_ERROR, e.getMessage());
5756
}

0 commit comments

Comments
 (0)