From f52b7cc2c5c31decb76c6221c81bda16b6b98c8b Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 6 Oct 2015 15:41:47 -0700 Subject: [PATCH] Removed unnecessary check --- src/compiler/emitter.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index c00c7e50076..312ea42eefb 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -4785,10 +4785,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promi // emit name if // - node has a name - // - this is default export and target is not ES6 (for ES6 `export default` does not need to be compiled downlevel) // - this is default export with static initializers - if ((node.name || (node.flags & NodeFlags.Default && (languageVersion < ScriptTarget.ES6 - || staticProperties.length > 0))) && !thisNodeIsDecorated) { + if ((node.name || (node.flags & NodeFlags.Default && staticProperties.length > 0)) && !thisNodeIsDecorated) { write(" "); emitDeclarationName(node); }