aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorkzc <zaxxon2011@gmail.com>2015-06-14 17:44:26 -0400
committerkzc <zaxxon2011@gmail.com>2015-06-14 17:44:26 -0400
commitf47b2b52a5642cf7991329a2b635f8f1168dc8c9 (patch)
treef13ea1a72709ef66fd0ed9af9901dc27189ab7f8 /lib/compress.js
parentfedb6191a11c2d868c23362e10f23795aae3ca3e (diff)
downloadtracifyjs-f47b2b52a5642cf7991329a2b635f8f1168dc8c9.tar.gz
tracifyjs-f47b2b52a5642cf7991329a2b635f8f1168dc8c9.zip
operator && and || optimization: add "else" before "if" as intended
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 34233143..343edc46 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -2118,7 +2118,7 @@ merge(Compressor.prototype, {
}
}
}
- if (self.operator == "||") {
+ else if (self.operator == "||") {
var ll = self.left.evaluate(compressor);
var rr = self.right.evaluate(compressor);
if (ll.length > 1) {