From 2eba10a25b85150075fd55348e2bd86d6271b54c Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 10 Nov 2016 08:53:32 -0800 Subject: [PATCH] Updated condition for more readability --- src/compiler/program.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 15e08842e76..7f614494e3b 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -1006,11 +1006,10 @@ namespace ts { return; } // pass through - let isConstInvalid = true; case SyntaxKind.VariableStatement: // Check modifiers if (nodes === (parent).modifiers) { - return checkModifiers(>nodes, !isConstInvalid); + return checkModifiers(>nodes, parent.kind === SyntaxKind.VariableStatement); } break; case SyntaxKind.PropertyDeclaration: