Skip to content

Commit 481b60b

Browse files
committed
fix lint
1 parent 430c061 commit 481b60b

File tree

1 file changed

+2
-2
lines changed
  • crates/swc_ecma_minifier/src/compress/pure

1 file changed

+2
-2
lines changed

crates/swc_ecma_minifier/src/compress/pure/misc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ impl Pure<'_> {
679679
// For non-empty separators, only optimize if we have at least 2 consecutive
680680
// literals This prevents infinite loop and ensures meaningful
681681
// optimization
682-
if separator != "" {
682+
if !separator.is_empty() {
683683
let mut consecutive_literals = 0;
684684
let mut max_consecutive = 0;
685685

@@ -750,7 +750,7 @@ impl Pure<'_> {
750750
}
751751

752752
// Handle different separators
753-
let is_string_concat = separator == "";
753+
let is_string_concat = separator.is_empty();
754754

755755
if is_string_concat {
756756
// Convert to string concatenation

0 commit comments

Comments
 (0)