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(