[Pkg-javascript-commits] [node-deps-sort] 45/79: fixed test for dedupe undef test

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


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

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

commit eca2337717effb10bf9ed1d6a27f3568623fb29f
Author: James Halliday <mail at substack.net>
Date:   Wed Jul 30 13:03:26 2014 +1200

    fixed test for dedupe undef test
---
 index.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js
index 9a05f58..4243b57 100644
--- a/index.js
+++ b/index.js
@@ -95,9 +95,8 @@ function depCmp (hashes) {
         hashes[row.id] = hash;
     }
     function cmp (a, b, limit) {
-        if(!a || !b) {
-            return false;
-        }
+        if (!a && !b) return true;
+        if (!a || !b) return false;
         
         var keys = Object.keys(a);
         if (keys.length !== Object.keys(b).length) return false;

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



More information about the Pkg-javascript-commits mailing list