Skip to content

Commit

Permalink
Remove unnecessary tslint-ignore (microsoft#33091)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch committed Aug 26, 2019
1 parent 9942c60 commit 111b73a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/compiler/emitter.ts
Expand Up @@ -411,11 +411,7 @@ namespace ts {
}
);
if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) {
// Improved narrowing in master/3.6 makes this cast unnecessary, triggering a lint rule.
// But at the same time, the LKG (3.5) necessitates it because it doesn’t narrow.
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`, and the
// tslint directive can be all be removed.
const sourceFile = declarationTransform.transformed[0] as SourceFile; // tslint:disable-line
const sourceFile = declarationTransform.transformed[0];
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
}
}
Expand Down

0 comments on commit 111b73a

Please sign in to comment.