Skip to content

Commit 8b55675

Browse files
author
Andy
authored
Simplify isDeclarationNameOrImportPropertyName (#16421)
1 parent 3b97c68 commit 8b55675

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24805,10 +24805,7 @@ namespace ts {
2480524805
switch (name.parent.kind) {
2480624806
case SyntaxKind.ImportSpecifier:
2480724807
case SyntaxKind.ExportSpecifier:
24808-
if ((name.parent as ImportOrExportSpecifier).propertyName) {
24809-
return true;
24810-
}
24811-
// falls through
24808+
return true;
2481224809
default:
2481324810
return isDeclarationName(name);
2481424811
}

0 commit comments

Comments
 (0)