FIX linting errors

This commit is contained in:
unpregnant 2017-02-17 22:47:45 +01:00
parent 6e25859f7b
commit d31a08f18d
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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(