From 260a66526435f3b1cbc13c7550db13cae6286aeb Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 3 Jan 2021 15:44:51 -1000 Subject: [PATCH] Remove redundant call --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 24dcc6afba9..77512625367 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -13309,7 +13309,7 @@ namespace ts { addNamedUnions(namedUnions, types); const reducedTypes: Type[] = []; for (const t of typeSet) { - if (!isNamedUnionType(t) && !some(namedUnions, union => containsType((union).types, t))) { + if (!some(namedUnions, union => containsType((union).types, t))) { reducedTypes.push(t); } }