Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #88 from hcodes/exit_code
Browse files Browse the repository at this point in the history
Fixed exit code
  • Loading branch information
hcodes authored Nov 7, 2017
2 parents 5f56d23 + f3faaf4 commit 9f3e3cc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v4.0.3
Fixed exit code #87.

## v4.0.2
Fixed SyntaxError #83.

Expand Down
7 changes: 4 additions & 3 deletions lib/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ function onResource(err, data, originalText) {
yaspeller.addPositions(originalText, data.data);
yaspeller.sortByPositions(data.data);

if (!process.exitCode) {
process.exitCode = exitCodes.HAS_TYPOS;
}
}

if (!process.exitCode && hasData(err, data)) {
process.exitCode = exitCodes.HAS_TYPOS;
}

if (err) {
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"yaspeller": "./bin/yaspeller"
},
"description": "Search tool typos in the text, files and websites",
"version": "4.0.2",
"version": "4.0.3",
"license": "MIT",
"homepage": "https://github.com/hcodes/yaspeller",
"repository": {
Expand Down

0 comments on commit 9f3e3cc

Please sign in to comment.