Skip to content

Commit

Permalink
lib: remove an unnecessary coverage check
Browse files Browse the repository at this point in the history
Fixes: #11445
Refs: f65a48f
  • Loading branch information
Fishrock123 committed Mar 24, 2017
1 parent a8a042a commit 4b7132c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/internal/process/write-coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ const fs = require('fs');
const mkdirSync = fs.mkdirSync;
const writeFileSync = fs.writeFileSync;

var isWritingCoverage = false;
function writeCoverage() {
if (isWritingCoverage || !global.__coverage__) {
if (!global.__coverage__) {
return;
}
isWritingCoverage = true;

const dirname = path.join(path.dirname(process.execPath), '.coverage');
const filename = `coverage-${process.pid}-${Date.now()}.json`;
Expand Down

0 comments on commit 4b7132c

Please sign in to comment.