Remove redundant call

This commit is contained in:
Anders Hejlsberg committed 2021-01-03 15:44:51 -10:00
1 parent d98caabaca
commit 260a665264
1 file changed
+1 -1
+1 -1
View File
@@ -13309,7 +13309,7 @@ namespace ts {
addNamedUnions(namedUnions, types);
const reducedTypes: Type[] = [];
for (const t of typeSet) {
if (!isNamedUnionType(t) && !some(namedUnions, union => containsType((<UnionType>union).types, t))) {
if (!some(namedUnions, union => containsType((<UnionType>union).types, t))) {
reducedTypes.push(t);
}
}