Remove unnecessary check in emitNodeList (#18327)

This commit is contained in:
Andy
2017-09-08 07:18:37 -07:00
committed by GitHub
parent 02cfb81ac0
commit 4ee7d3aeb2

View File

@@ -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;
}