From dcfc4aca5b97419150e742f2f94c40cdd8497189 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 16 Nov 2019 00:40:22 +0800 Subject: [PATCH] minor clean-ups (#3588) --- lib/compress.js | 2 -- lib/minify.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/compress.js b/lib/compress.js index 668293d2..9d844b81 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -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) { diff --git a/lib/minify.js b/lib/minify.js index 93f1295e..72d99576 100644 --- a/lib/minify.js +++ b/lib/minify.js @@ -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; -- 2.34.1