Skip to content

Commit c028371

Browse files
committed
simplify
1 parent 8ffa726 commit c028371

File tree

1 file changed

+2
-9
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+2
-9
lines changed

packages/svelte/src/internal/client/reactivity/batch.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,12 @@ export class Batch {
140140
batch.#callbacks.add(fn);
141141
}
142142

143-
this.#remove();
144143
break;
145144
}
146145
}
147146
}
148147

149-
if (merged) {
150-
this.#remove();
151-
} else {
148+
if (!merged) {
152149
var render_effects = this.render_effects;
153150
var effects = this.effects;
154151

@@ -203,10 +200,6 @@ export class Batch {
203200
this.#current.set(source, source.v);
204201
}
205202

206-
#remove() {
207-
batches.delete(this);
208-
}
209-
210203
restore() {
211204
current_batch = this;
212205
}
@@ -221,7 +214,7 @@ export class Batch {
221214
}
222215

223216
if (this.#pending === 0) {
224-
this.#remove();
217+
batches.delete(this);
225218
}
226219

227220
current_batch = null;

0 commit comments

Comments
 (0)