[Pkg-javascript-commits] [node-acorn-jsx] 134/484: Remove redundant if conditions that are tested above

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:15 UTC 2017


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

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

commit 567f3ca32abc77091f42dfd589deb7b96baa9562
Author: Jiaxing Wang <hello.wjx at gmail.com>
Date:   Wed Jul 10 18:40:56 2013 +0800

    Remove redundant if conditions that are tested above
---
 acorn.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/acorn.js b/acorn.js
index b9d32d5..34b4932 100644
--- a/acorn.js
+++ b/acorn.js
@@ -539,7 +539,7 @@
         } else if (next === 47) { // '/'
           skipLineComment();
         } else break;
-      } else if ((ch < 14 && ch > 8) || ch === 32 || ch === 160) { // ' ', '\xa0'
+      } else if (ch === 160) { // '\xa0'
         ++tokPos;
       } else if (ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {
         ++tokPos;

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



More information about the Pkg-javascript-commits mailing list