Skip to content

Commit

Permalink
write to the cache async?
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage committed Dec 16, 2015
1 parent 7eec3e0 commit ed1a9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ NYC.prototype._wrapRequire = function () {
return fs.readFileSync(cacheFilePath, 'utf8')
} catch (e) {
var instrumented = _this.instrumenter().instrumentSync(code, './' + relFile)
fs.writeFileSync(cacheFilePath, instrumented)
fs.writeFile(cacheFilePath, instrumented)
return instrumented
}
})
Expand Down

0 comments on commit ed1a9ee

Please sign in to comment.