Skip to content

Commit 8bb17e6

Browse files
committed
fix lint error
1 parent d43a5b8 commit 8bb17e6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: src/context/script-let.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -835,12 +835,15 @@ export class ScriptLetContext {
835835
// If we replace the `scope.block` at this time,
836836
// the scope restore calculation will not work, so we will replace the `scope.block` later.
837837
postprocessList.push(() => {
838-
const beforeBlock = scope.block
838+
const beforeBlock = scope.block;
839839
scope.block = node;
840840

841-
for (const variable of [...scope.variables, ...scope.upper?.variables ?? []]) {
841+
for (const variable of [
842+
...scope.variables,
843+
...(scope.upper?.variables ?? []),
844+
]) {
842845
for (const def of variable.defs) {
843-
if(def.node === beforeBlock) {
846+
if (def.node === beforeBlock) {
844847
def.node = node;
845848
}
846849
}

0 commit comments

Comments
 (0)