Skip to content

Commit 45b63ab

Browse files
author
Ace Nassri
authored
Background function: add return statement (GoogleCloudPlatform#2814)
1 parent 4cb65d9 commit 45b63ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions/helloworld/hello-pubsub/src/main/java/functions/HelloPubSub.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public void accept(PubSubMessage message, Context context) {
3939
StandardCharsets.UTF_8);
4040
}
4141
logger.info(String.format("Hello %s!", name));
42+
return;
4243
}
4344
}
4445
// [END functions_background_helloworld]

0 commit comments

Comments
 (0)