Skip to content

Commit 3a27726

Browse files
committed
reduce nesting
1 parent 1d58137 commit 3a27726

File tree

1 file changed

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

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -759,16 +759,16 @@ function mark_effects(value, sources, marked, checked) {
759759
* @param {Set<Effect>} effects
760760
*/
761761
function mark_eager_effects(value, effects) {
762-
if (value.reactions !== null) {
763-
for (const reaction of value.reactions) {
764-
const flags = reaction.f;
762+
if (value.reactions === null) return;
765763

766-
if ((flags & DERIVED) !== 0) {
767-
mark_eager_effects(/** @type {Derived} */ (reaction), effects);
768-
} else if ((flags & EAGER_EFFECT) !== 0) {
769-
set_signal_status(reaction, DIRTY);
770-
effects.add(/** @type {Effect} */ (reaction));
771-
}
764+
for (const reaction of value.reactions) {
765+
const flags = reaction.f;
766+
767+
if ((flags & DERIVED) !== 0) {
768+
mark_eager_effects(/** @type {Derived} */ (reaction), effects);
769+
} else if ((flags & EAGER_EFFECT) !== 0) {
770+
set_signal_status(reaction, DIRTY);
771+
effects.add(/** @type {Effect} */ (reaction));
772772
}
773773
}
774774
}

0 commit comments

Comments
 (0)