diff --git a/packages/kolibri-tools/lib/cli.js b/packages/kolibri-tools/lib/cli.js index d0b37cb4957..42360c4b2eb 100755 --- a/packages/kolibri-tools/lib/cli.js +++ b/packages/kolibri-tools/lib/cli.js @@ -385,15 +385,11 @@ program return Promise.all( matches.map(globbedFile => { if (!patternCheck || patternCheck.match(globbedFile)) { - return runLinting(globbedFile) - .then(formatted => { - return formatted.code; - }) - .catch(error => { - logging.error(`Error processing file: ${globbedFile}`); - logging.error(error.error ? error.error : error); - return error.code; - }); + return runLinting(globbedFile).catch(error => { + logging.error(`Error processing file: ${globbedFile}`); + logging.error(error.error ? error.error : error); + return error.code; + }); } else { return Promise.resolve(0); }