[Pkg-javascript-commits] [node-detective] 95/119: don't mutate "opts" - parse can handle no opts

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:44:38 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-detective.

commit 2e4a994e4f3e23e9d330f6b3fb5761b0e4b09eeb
Author: Andres Suarez <zertosh at gmail.com>
Date:   Sat May 23 21:04:47 2015 -0400

    don't mutate "opts" - parse can handle no opts
---
 index.js | 1 -
 1 file changed, 1 deletion(-)

diff --git a/index.js b/index.js
index dbca43e..f16132a 100644
--- a/index.js
+++ b/index.js
@@ -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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-detective.git



More information about the Pkg-javascript-commits mailing list