Skip to content

Commit 9d1394f

Browse files
authored
chore: remove unused DESTROYED check (#13294)
1 parent c229e0f commit 9d1394f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/svelte/src/internal/client/runtime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,7 @@ function process_effects(effect, collected_effects) {
612612

613613
main_loop: while (current_effect !== null) {
614614
var flags = current_effect.f;
615-
// TODO: we probably don't need to check for destroyed as it shouldn't be encountered?
616-
var is_active = (flags & (DESTROYED | INERT)) === 0;
615+
var is_active = (flags & INERT) === 0;
617616
var is_branch = (flags & BRANCH_EFFECT) !== 0;
618617
var is_clean = (flags & CLEAN) !== 0;
619618
var child = current_effect.first;
@@ -646,6 +645,7 @@ function process_effects(effect, collected_effects) {
646645
}
647646
}
648647
}
648+
649649
var sibling = current_effect.next;
650650

651651
if (sibling === null) {

0 commit comments

Comments
 (0)