[Pkg-javascript-commits] [node-detective] 71/119: indent correctly

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 4946ec4e2d0b76cc1452a874bb95e28cc55260aa
Author: James Halliday <mail at substack.net>
Date:   Fri Feb 28 00:58:38 2014 -0800

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

diff --git a/index.js b/index.js
index 47efdfc..ac250b7 100644
--- a/index.js
+++ b/index.js
@@ -56,12 +56,12 @@ exports.find = function (src, opts) {
     walk(src, opts.parse, function (node) {
         if (!isRequire(node)) return;
         if (node.arguments.length) {
-          if (node.arguments[0].type === 'Literal') {
-              modules.strings.push(node.arguments[0].value);
-          }
-          else {
-              modules.expressions.push(escodegen.generate(node.arguments[0]));
-          }
+            if (node.arguments[0].type === 'Literal') {
+                modules.strings.push(node.arguments[0].value);
+            }
+            else {
+                modules.expressions.push(escodegen.generate(node.arguments[0]));
+            }
         }
         if (opts.nodes) modules.nodes.push(node);
     });

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