Skip to content

Commit 4ec22ea

Browse files
Remove extra len(b.Properties) > 0 check (#2025)
1 parent 2734bbf commit 4ec22ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/js_printer/js_printer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,8 @@ func (p *printer) printBinding(binding js_ast.Binding) {
770770
p.options.Indent--
771771
p.printNewline()
772772
p.printIndent()
773-
} else if len(b.Properties) > 0 {
773+
// This block is only reached if len(b.Properties) > 0
774+
} else {
774775
p.printSpace()
775776
}
776777
}

0 commit comments

Comments
 (0)