Skip to content

Commit 4a56c2a

Browse files
committed
tweak
1 parent 623fb50 commit 4a56c2a

File tree

1 file changed

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

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ export class Batch {
4040
pending = 0;
4141

4242
apply() {
43-
if (batches.size === 1) {
44-
// if this is the latest (and only) batch, we have nothing to do
45-
return noop;
46-
}
43+
// common case: no overlapping batches, nothing to revert
44+
if (batches.size === 1) return noop;
4745

4846
var current_values = new Map();
4947

0 commit comments

Comments
 (0)