diff --git a/solhint.js b/solhint.js index 5f8d5b4a..eb808db5 100644 --- a/solhint.js +++ b/solhint.js @@ -163,7 +163,7 @@ function executeMainActionLogic() { printReports(reports, formatterFn) - exitWithCode(reports) + process.exit(0) } function processStdin(options) { @@ -185,7 +185,7 @@ function processStdin(options) { printReports(reports, formatterFn) - exitWithCode(reports) + process.exit(0) } function writeSampleConfigFile() { @@ -365,11 +365,6 @@ function listRules() { } } -function exitWithCode(reports) { - const errorsCount = reports.reduce((acc, i) => acc + i.errorCount, 0) - process.exit(errorsCount > 0 ? 1 : 0) -} - function checkForUpdate() { // eslint-disable-next-line import/no-extraneous-dependencies return import('latest-version')