Skip to content

Commit 6c8ee70

Browse files
claude[bot]kdy1
andcommitted
Apply reviewer suggestions: Remove comments from OptChain and Member cases
Co-authored-by: Donny/강동윤 <[email protected]>
1 parent c8ad226 commit 6c8ee70

File tree

1 file changed

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

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,7 @@ impl Pure<'_> {
565565
Expr::Lit(lit) => !matches!(lit, Lit::Str(..) | Lit::Num(..) | Lit::Null(..)),
566566
// This can change behavior if the value is `undefined` or `null`.
567567
Expr::Ident(..) => false,
568-
// Optional chaining can produce undefined
569568
Expr::OptChain(..) => false,
570-
// Member expressions might produce undefined
571569
Expr::Member(..) => false,
572570
_ => true,
573571
})

0 commit comments

Comments
 (0)