From 367486dc172cdaaedd55bd37916ff5fcb280f3e1 Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Mon, 16 Sep 2019 11:40:18 -0300 Subject: [PATCH] refactor: Remove functions_tips_terminate_node8 --- functions/node8/index.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/functions/node8/index.js b/functions/node8/index.js index 7a6198969b..3a307144d8 100644 --- a/functions/node8/index.js +++ b/functions/node8/index.js @@ -20,22 +20,6 @@ const fetch = require('node-fetch'); // [END functions_background_promise_node8] // [END functions_background_async] -/** - * HTTP Cloud Function (same signature as other Node runtimes) - * - * @param {Object} req Cloud Function request context. - * More info: https://expressjs.com/en/api.html#req - * @param {Object} res Cloud Function response context. - * More info: https://expressjs.com/en/api.html#res - */ -// [START functions_tips_terminate_node8] -const escapeHtml = require('escape-html'); - -exports.helloHttp = (req, res) => { - res.send(`Hello ${escapeHtml(req.query.name || req.body.name || 'World')}!`); -}; -// [END functions_tips_terminate_node8] - // [START functions_tips_infinite_retries_node8] /** * Background Cloud Function that only executes within a certain time