Skip to content

Commit 8442ec0

Browse files
committed
remove useless comment
1 parent f20a282 commit 8442ec0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/compiler/emitter.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,7 @@ namespace ts {
411411
}
412412
);
413413
if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) {
414-
// Improved narrowing in master/3.6 makes this cast unnecessary, triggering a lint rule.
415-
// But at the same time, the LKG (3.5) necessitates it because it doesn’t narrow.
416-
// Once the LKG is updated to 3.6, this comment, the cast to `SourceFile`, and the eslint directive can be all be removed.
417-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
418-
const sourceFile = declarationTransform.transformed[0] as SourceFile;
414+
const sourceFile = declarationTransform.transformed[0];
419415
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
420416
}
421417
}

0 commit comments

Comments
 (0)