Skip to content

Commit

Permalink
minor clean-ups (#3588)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed Nov 15, 2019
1 parent 4027f87 commit dcfc4ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/compress.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/minify.js
Expand Up @@ -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;
Expand Down

0 comments on commit dcfc4ac

Please sign in to comment.