[Pkg-javascript-commits] [node-detective] 67/119: re-indent

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:44:36 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 c84db78d6354a97e64537e25c7ef2343bec2992d
Author: James Halliday <mail at substack.net>
Date:   Fri Jan 31 21:26:20 2014 -0800

    re-indent
---
 index.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/index.js b/index.js
index ce6faa3..49000c9 100644
--- a/index.js
+++ b/index.js
@@ -34,11 +34,11 @@ exports.find = function (src, opts) {
     if (!opts) opts = {};
     opts.parse = opts.parse || {};
     opts.parse.tolerant = true;
-
+    
     var word = opts.word === undefined ? 'require' : opts.word;
     if (typeof src !== 'string') src = String(src);
     src = src.replace(/^#![^\n]*\n/, '');
-
+    
     var isRequire = opts.isRequire || function (node) {
         var c = node.callee;
         return c
@@ -47,12 +47,12 @@ exports.find = function (src, opts) {
             && c.name === word
         ;
     }
-
+    
     var modules = { strings : [], expressions : [] };
     if (opts.nodes) modules.nodes = [];
-
+    
     if (src.indexOf(word) == -1) return modules;
-
+    
     walk(src, opts.parse, function (node) {
         if (!isRequire(node)) return;
         if (node.arguments.length
@@ -64,6 +64,6 @@ exports.find = function (src, opts) {
         }
         if (opts.nodes) modules.nodes.push(node);
     });
-
+    
     return modules;
 };

-- 
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