From 61806ec0f23070158b15de5dca05a7d39991dedc Mon Sep 17 00:00:00 2001 From: DTR Date: Sun, 31 May 2020 11:55:39 +0300 Subject: [PATCH 1/2] 0.9 --- package.json | 2 +- src/generateZeroFunction.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 161655a..695c144 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "license": "GPL-3.0", "devDependencies": { "@mate-academy/eslint-config": "*", - "@mate-academy/scripts": "^0.3.5", + "@mate-academy/scripts": "^0.3.6", "eslint": "^5.16.0", "eslint-plugin-jest": "^22.4.1", "eslint-plugin-node": "^8.0.1", diff --git a/src/generateZeroFunction.js b/src/generateZeroFunction.js index 7c25f17..8590daa 100644 --- a/src/generateZeroFunction.js +++ b/src/generateZeroFunction.js @@ -1,5 +1,5 @@ 'use strict'; - +/* eslint-disable */ /** * Implement generateZeroFunction function: * @@ -12,7 +12,7 @@ * */ function generateZeroFunction() { - // write code here +return function(){return 0} } module.exports = generateZeroFunction; From 20e44d3aed13c36a2146fec489acc80c6686ec81 Mon Sep 17 00:00:00 2001 From: DTR Date: Sun, 31 May 2020 11:56:23 +0300 Subject: [PATCH 2/2] final 1.0 --- src/generateZeroFunction.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/generateZeroFunction.js b/src/generateZeroFunction.js index 8590daa..1287e9c 100644 --- a/src/generateZeroFunction.js +++ b/src/generateZeroFunction.js @@ -1,5 +1,5 @@ 'use strict'; -/* eslint-disable */ + /** * Implement generateZeroFunction function: * @@ -12,7 +12,9 @@ * */ function generateZeroFunction() { -return function(){return 0} + return function() { + return 0; + }; } module.exports = generateZeroFunction;