Skip to content

Commit 6e52510

Browse files
committed
fix
1 parent 97c6c66 commit 6e52510

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/codemods/ac3-to-ac4/src/util/handleIdentiferRename.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function handleIdentiferRename({
123123
}
124124
}
125125
}
126-
if (importDeclaration.specifiers?.length === 0) {
126+
if (importDeclarations.find(j.ImportSpecifier).size() === 0) {
127127
importDeclarationPath.replace(
128128
// when removing the import declaration, try to keep comments
129129
// in place - we don't know if they really were attached

0 commit comments

Comments
 (0)