Skip to content

Commit

Permalink
chore: Remove legacy code for exit handling in node.js < 0.11.8 (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell authored Feb 22, 2019
1 parent 5d5f340 commit 7b5dad5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,6 @@ NYC.prototype.checkCoverage = function (thresholds, perFile) {
// ERROR: Coverage for lines (90.12%) does not meet global threshold (120%)
nyc._checkCoverage(map.getCoverageSummary(), thresholds)
}

// process.exitCode was not implemented until v0.11.8.
if (/^v0\.(1[0-1]\.|[0-9]\.)/.test(process.version) && process.exitCode !== 0) process.exit(process.exitCode)
}

NYC.prototype._checkCoverage = function (summary, thresholds, file) {
Expand Down

0 comments on commit 7b5dad5

Please sign in to comment.