From 3580a999c8f5414250f990dae094a4db1663b83e Mon Sep 17 00:00:00 2001 From: Jason Freeman Date: Fri, 18 Jul 2014 16:24:31 -0700 Subject: [PATCH] Address PR feedback --- src/compiler/checker.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index bacfc99085f..6a9d1cd44fd 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5678,9 +5678,7 @@ module ts { function checkExportAssignment(node: ExportAssignment) { var container = node.parent; - if (container.kind === SyntaxKind.SourceFile) { - } - else { + if (container.kind !== SyntaxKind.SourceFile) { // In a module, the immediate parent will be a block, so climb up one more parent container = container.parent; }