We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 430c061 commit 481b60bCopy full SHA for 481b60b
crates/swc_ecma_minifier/src/compress/pure/misc.rs
@@ -679,7 +679,7 @@ impl Pure<'_> {
679
// For non-empty separators, only optimize if we have at least 2 consecutive
680
// literals This prevents infinite loop and ensures meaningful
681
// optimization
682
- if separator != "" {
+ if !separator.is_empty() {
683
let mut consecutive_literals = 0;
684
let mut max_consecutive = 0;
685
@@ -750,7 +750,7 @@ impl Pure<'_> {
750
}
751
752
// Handle different separators
753
- let is_string_concat = separator == "";
+ let is_string_concat = separator.is_empty();
754
755
if is_string_concat {
756
// Convert to string concatenation
0 commit comments