mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Remove unnecessary check in emitNodeList (#18327)
This commit is contained in:
1 parent
02cfb81ac0
commit
4ee7d3aeb2
1 file changed
+1
-1
@@ -2415,7 +2415,7 @@ namespace ts {
|
||||
return;
|
||||
}
|
||||
|
||||
const isEmpty = isUndefined || children.length === 0 || start >= children.length || count === 0;
|
||||
const isEmpty = isUndefined || start >= children.length || count === 0;
|
||||
if (isEmpty && format & ListFormat.OptionalIfEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user