Skip to content

Commit

Permalink
some cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosantoscode committed Oct 5, 2022
1 parent 5fc3925 commit 350f965
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/compress/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,9 @@ export function is_ref_of(ref, type) {
}
}

// Can we turn { block contents... } into just the block contents ?
// Not if one of these is inside.
/**Can we turn { block contents... } into just the block contents ?
* Not if one of these is inside.
**/
export function can_be_evicted_from_block(node) {
return !(
node instanceof AST_DefClass ||
Expand Down
3 changes: 1 addition & 2 deletions lib/compress/tighten-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -1189,8 +1189,7 @@ export function tighten_body(statements, compressor) {
}

function declarations_only(node) {
return node.definitions.every((var_def) => !var_def.value
);
return node.definitions.every((var_def) => !var_def.value);
}

function sequencesize(statements, compressor) {
Expand Down

0 comments on commit 350f965

Please sign in to comment.