[Pkg-javascript-commits] [node-acorn-jsx] 69/484: Unnecessary 'if' as we already know 'ch !== 92'
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:20:06 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 5e4ea00f3c916e3f9287913c7d2845597690a31f
Author: Martin Carlberg <martin at carlberg.org>
Date: Tue Jan 8 23:28:17 2013 +0100
Unnecessary 'if' as we already know 'ch !== 92'
---
acorn.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/acorn.js b/acorn.js
index bf16e18..4ae8896 100644
--- a/acorn.js
+++ b/acorn.js
@@ -772,7 +772,7 @@
}
} else {
if (ch === 13 || ch === 10 || ch === 8232 || ch === 8329) raise(tokStart, "Unterminated string constant");
- if (ch !== 92) rs_str.push(ch); // '\'
+ rs_str.push(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