Skip to content

Commit 886a6d3

Browse files
committed
Tiny GCF hello world cleanup
1 parent 991b49b commit 886a6d3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

functions/helloworld/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ exports.helloBackground = function helloBackground (event, callback) {
7777
* @param {object} event The Cloud Functions event.
7878
* @param {function} The callback function.
7979
*/
80-
exports.helloPubSub = function helloPubSub (event, callback) {
80+
exports.helloPubSub = function (event, callback) {
8181
const pubsubMessage = event.data;
8282
const name = pubsubMessage.data ? Buffer.from(pubsubMessage.data, 'base64').toString() : 'World';
83-
console.log(`Hello ${name}!`);
83+
84+
console.log(`Hello, ${name}!`);
85+
8486
callback();
8587
};
8688
// [END functions_helloworld_pubsub]
@@ -92,7 +94,7 @@ exports.helloPubSub = function helloPubSub (event, callback) {
9294
* @param {object} event The Cloud Functions event.
9395
* @param {function} The callback function.
9496
*/
95-
exports.helloGCS = function helloGCS (event, callback) {
97+
exports.helloGCS = function (event, callback) {
9698
const file = event.data;
9799
const isDelete = file.resourceState === 'not_exists';
98100

0 commit comments

Comments
 (0)