Skip to content

Commit 3541810

Browse files
committed
Apply fix
1 parent ce185d8 commit 3541810

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/script/generic.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function extractGeneric(element: VElement): GenericProcessInfo | null {
9595
typeDefScope: Scope,
9696
isRemoveTarget: (nodeOrToken: HasLocation) => boolean,
9797
) {
98-
for (const variable of [...typeDefScope.variables]) {
98+
for (const variable of typeDefScope.variables) {
9999
let def = variable.defs.find((d) =>
100100
isRemoveTarget(d.name as HasLocation),
101101
)
@@ -106,13 +106,13 @@ export function extractGeneric(element: VElement): GenericProcessInfo | null {
106106
)
107107
}
108108
}
109-
for (const reference of [...typeDefScope.references]) {
109+
for (const reference of typeDefScope.references) {
110110
if (isRemoveTarget(reference.identifier as HasLocation)) {
111111
removeReference(reference, typeDefScope)
112112
}
113113
}
114114

115-
for (const scope of [...scopeManager.scopes]) {
115+
for (const scope of scopeManager.scopes) {
116116
if (isRemoveTarget(scope.block as HasLocation)) {
117117
removeScope(scopeManager, scope)
118118
}

0 commit comments

Comments
 (0)