Skip to content

Commit 4ee7d3a

Browse files
author
Andy
authored
Remove unnecessary check in emitNodeList (#18327)
1 parent 02cfb81 commit 4ee7d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2415,7 +2415,7 @@ namespace ts {
24152415
return;
24162416
}
24172417

2418-
const isEmpty = isUndefined || children.length === 0 || start >= children.length || count === 0;
2418+
const isEmpty = isUndefined || start >= children.length || count === 0;
24192419
if (isEmpty && format & ListFormat.OptionalIfEmpty) {
24202420
return;
24212421
}

0 commit comments

Comments
 (0)