From 7b5dad5231b4f5040a344377f5fad6691fb147e9 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Fri, 22 Feb 2019 17:31:10 -0500 Subject: [PATCH] chore: Remove legacy code for exit handling in node.js < 0.11.8 (#999) --- index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/index.js b/index.js index f98122e93..d025f462e 100755 --- a/index.js +++ b/index.js @@ -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) {