From d31a08f18d14b400d89dafb5655aeb12f154ceed Mon Sep 17 00:00:00 2001 From: unpregnant Date: Fri, 17 Feb 2017 22:47:45 +0100 Subject: [PATCH] FIX linting errors --- src/Server.js | 4 +++- src/StyleCompiler.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Server.js b/src/Server.js index 819e344..9c31398 100755 --- a/src/Server.js +++ b/src/Server.js @@ -29,7 +29,9 @@ const Server = { */ kill: function() { request.get('http://localhost:' + Config.port + '/kill') - .catch(error => false); + .catch(error => { + if (error) return false; + }); }, /** * sets route of express app diff --git a/src/StyleCompiler.js b/src/StyleCompiler.js index 11765b9..3ec0625 100755 --- a/src/StyleCompiler.js +++ b/src/StyleCompiler.js @@ -45,7 +45,7 @@ const StyleCompiler = { await Util.writeFile(stylePath, styleMinified.styles); const directories = Util.getResumesFromDirectories(); - const contents = await Promise.all( + await Promise.all( directories .map(async(resume) => { const resumeLess = await Util.readFileContent(