minor clean-ups (#3588)
authorAlex Lam S.L <alexlamsl@gmail.com>
Fri, 15 Nov 2019 16:40:22 +0000 (00:40 +0800)
committerGitHub <noreply@github.com>
Fri, 15 Nov 2019 16:40:22 +0000 (00:40 +0800)
lib/compress.js
lib/minify.js

index 668293d..9d844b8 100644 (file)
@@ -1176,7 +1176,6 @@ merge(Compressor.prototype, {
                 }
                 // These node types have child nodes that execute sequentially,
                 // but are otherwise not safe to scan into or beyond them.
-                var sym;
                 if (is_last_node(node, parent) || may_throw(node)) {
                     stop_after = node;
                     if (node instanceof AST_Scope) abort = true;
@@ -7163,7 +7162,6 @@ merge(Compressor.prototype, {
 
     OPT(AST_Object, function(self, compressor) {
         if (!compressor.option("objects") || compressor.has_directive("use strict")) return self;
-        var props = self.properties;
         var keys = new Dictionary();
         var values = [];
         self.properties.forEach(function(prop) {
index 93f1295..72d9957 100644 (file)
@@ -252,7 +252,7 @@ function minify(files, options) {
                 properties: 1e-3 * (timings.output - timings.properties),
                 output: 1e-3 * (timings.end - timings.output),
                 total: 1e-3 * (timings.end - timings.start)
-            }
+            };
         }
         if (warnings.length) {
             result.warnings = warnings;