From b530d06164b87b835ce3249aa5b66f1e4d6aa74b Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Sat, 8 Feb 2020 12:39:46 +0000 Subject: [PATCH] Apply linting for node12 Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- template/node12/function/handler.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/template/node12/function/handler.js b/template/node12/function/handler.js index 63516d5b..75263566 100644 --- a/template/node12/function/handler.js +++ b/template/node12/function/handler.js @@ -1,12 +1,11 @@ -"use strict" +'use strict' module.exports = async (event, context) => { - let err; - const result = { - status: "Received input: " + JSON.stringify(event.body) - }; + const result = { + 'status': 'Received input: ' + JSON.stringify(event.body) + } - return context - .status(200) - .succeed(result); + return context + .status(200) + .succeed(result) }