Skip to content

Commit

Permalink
chore: remove unused DESTROYED check
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Sep 17, 2024
1 parent c229e0f commit 8aea49f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/svelte/src/internal/client/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,7 @@ function process_effects(effect, collected_effects) {

main_loop: while (current_effect !== null) {
var flags = current_effect.f;
// TODO: we probably don't need to check for destroyed as it shouldn't be encountered?
var is_active = (flags & (DESTROYED | INERT)) === 0;
var is_active = (flags & INERT) === 0;
var is_branch = (flags & BRANCH_EFFECT) !== 0;
var is_clean = (flags & CLEAN) !== 0;
var child = current_effect.first;
Expand Down Expand Up @@ -646,6 +645,7 @@ function process_effects(effect, collected_effects) {
}
}
}

var sibling = current_effect.next;

if (sibling === null) {
Expand Down

0 comments on commit 8aea49f

Please sign in to comment.