Skip to content

Commit 14fb8ce

Browse files
crisbetokirjs
authored andcommitted
fix(migrations): resolve text replacement issue (#59452)
Based on #59353 (comment), fixes a text replacement issue that seems to cause code to be duplicated in some setups. PR Close #59452
1 parent 53c8dc6 commit 14fb8ce

File tree

1 file changed

+1
-1
lines changed
  • packages/core/schematics/ng-generate/cleanup-unused-imports

1 file changed

+1
-1
lines changed

packages/core/schematics/ng-generate/cleanup-unused-imports/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function migrate(): Rule {
6767
for (const c of changes) {
6868
recorder
6969
.remove(c.data.position, c.data.end - c.data.position)
70-
.insertLeft(c.data.position, c.data.toInsert);
70+
.insertRight(c.data.position, c.data.toInsert);
7171
}
7272
tree.commitUpdate(recorder);
7373
}

0 commit comments

Comments
 (0)