From 5e4ea00f3c916e3f9287913c7d2845597690a31f Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Tue, 8 Jan 2013 23:28:17 +0100 Subject: [PATCH] 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 bf16e18dbb..4ae8896f16 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; } }