Skip to content

Commit

Permalink
don't mutate "opts" - parse can handle no opts
Browse files Browse the repository at this point in the history
  • Loading branch information
zertosh committed May 24, 2015
1 parent 3a77e45 commit 2e4a994
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion index.js
Expand Up @@ -49,7 +49,6 @@ var exports = module.exports = function (src, opts) {

exports.find = function (src, opts) {
if (!opts) opts = {};
opts.parse = opts.parse || {};

var word = opts.word === undefined ? 'require' : opts.word;
if (typeof src !== 'string') src = String(src);
Expand Down

0 comments on commit 2e4a994

Please sign in to comment.