Skip to content

Commit

Permalink
Fix that --fix is not executed
Browse files Browse the repository at this point in the history
fixes: zeke#23
  • Loading branch information
abetomo committed Sep 14, 2018
1 parent a5c3ee9 commit 8d2f7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ standardMarkdown[program.fix ? 'formatFiles' : 'lintFiles'](files, function (err
if (err) throw err

// No errors
if (results.every(function (result) { return result.errors.length === 0 })) {
if (!program.fix && results.every(function (result) { return result.errors.length === 0 })) {
process.exit(0)
}

Expand Down

0 comments on commit 8d2f7f7

Please sign in to comment.