Skip to content

Commit

Permalink
Document 'callback' parameter name in @param (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri authored and jmdobry committed Jul 7, 2017
1 parent fd403fe commit 8867ca3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions functions/helloworld/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ require('@google-cloud/debug-agent').start();
* Cloud Function.
*
* @param {object} event The Cloud Functions event.
* @param {function} The callback function.
* @param {function} callback The callback function.
*/
exports.helloWorld = function helloWorld (event, callback) {
console.log(`My Cloud Function: ${event.data.message}`);
Expand Down Expand Up @@ -63,7 +63,7 @@ exports.helloHttp = function helloHttp (req, res) {
* Background Cloud Function.
*
* @param {object} event The Cloud Functions event.
* @param {function} The callback function.
* @param {function} callback The callback function.
*/
exports.helloBackground = function helloBackground (event, callback) {
callback(null, `Hello ${event.data.name || 'World'}!`);
Expand All @@ -75,7 +75,7 @@ exports.helloBackground = function helloBackground (event, callback) {
* Background Cloud Function to be triggered by Pub/Sub.
*
* @param {object} event The Cloud Functions event.
* @param {function} The callback function.
* @param {function} callback The callback function.
*/
exports.helloPubSub = function (event, callback) {
const pubsubMessage = event.data;
Expand All @@ -92,7 +92,7 @@ exports.helloPubSub = function (event, callback) {
* Background Cloud Function to be triggered by Cloud Storage.
*
* @param {object} event The Cloud Functions event.
* @param {function} The callback function.
* @param {function} callback The callback function.
*/
exports.helloGCS = function (event, callback) {
const file = event.data;
Expand All @@ -116,7 +116,7 @@ exports.helloGCS = function (event, callback) {
* Background Cloud Function that throws an error.
*
* @param {object} event The Cloud Functions event.
* @param {function} The callback function.
* @param {function} callback The callback function.
*/
exports.helloError = function helloError (event, callback) {
// This WILL be reported to Stackdriver errors
Expand All @@ -130,7 +130,7 @@ exports.helloError = function helloError (event, callback) {
* Background Cloud Function that throws a value.
*
* @param {object} event The Cloud Functions event.
* @param {function} The callback function.
* @param {function} callback The callback function.
*/
exports.helloError2 = function helloError2 (event, callback) {
// This will NOT be reported to Stackdriver errors
Expand All @@ -143,7 +143,7 @@ exports.helloError2 = function helloError2 (event, callback) {
* Background Cloud Function that throws an error.
*
* @param {object} event The Cloud Functions event.
* @param {function} The callback function.
* @param {function} callback The callback function.
*/
exports.helloError3 = function helloError3 (event, callback) {
// This will NOT be reported to Stackdriver errors
Expand Down

0 comments on commit 8867ca3

Please sign in to comment.