From 25f9a1fec281807143c994167042f142ee49fc36 Mon Sep 17 00:00:00 2001 From: Jack Williams Date: Sun, 3 Feb 2019 22:44:15 +0000 Subject: [PATCH] Fix lint errors --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index a4c4761fb55..4e9985129e0 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -16163,12 +16163,12 @@ namespace ts { const clauseTypes = switchTypes.slice(clauseStart, clauseEnd); const hasDefaultClause = clauseStart === clauseEnd || contains(clauseTypes, neverType); if ((type.flags & TypeFlags.Unknown) && !hasDefaultClause) { - let groundClauseTypes: Type[] | undefined = undefined; + let groundClauseTypes: Type[] | undefined; for (let i = 0; i < clauseTypes.length; i += 1) { const t = clauseTypes[i]; if (t.flags & (TypeFlags.Primitive | TypeFlags.NonPrimitive)) { if (groundClauseTypes !== undefined) { - groundClauseTypes.push(t) + groundClauseTypes.push(t); } } else if (t.flags & TypeFlags.Object) {