Skip to content

Commit

Permalink
Remove opts.resolveAbsolutePaths option, simply don't path.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrod-becker committed Apr 20, 2016
1 parent 27be6aa commit 5e79eb4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions index.js
Expand Up @@ -22,7 +22,6 @@ var plugin = module.exports = function (opts) {
instrumenter: istanbul.Instrumenter
});
opts.includeUntested = opts.includeUntested === true;
opts.resolveAbsolutePaths = opts.resolveAbsolutePaths === true;

var instrumenter = new opts.instrumenter(opts);

Expand All @@ -32,10 +31,6 @@ var plugin = module.exports = function (opts) {
return cb(new PluginError(PLUGIN_NAME, 'streams not supported'));
}

if (opts.resolveAbsolutePaths) {
file.path = path.resolve(file.path);
}

instrumenter.instrument(file.contents.toString(), file.path, function (err, code) {
if (err) {
return cb(new PluginError(
Expand Down

0 comments on commit 5e79eb4

Please sign in to comment.