From c55b143eabc620f1f552032b3e407ecf5dc63ede Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 19 Mar 2024 16:01:16 -0400 Subject: [PATCH] tidy up --- packages/svelte/src/internal/client/dom/blocks/each.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/svelte/src/internal/client/dom/blocks/each.js b/packages/svelte/src/internal/client/dom/blocks/each.js index f285c22f4d..0545264ece 100644 --- a/packages/svelte/src/internal/client/dom/blocks/each.js +++ b/packages/svelte/src/internal/client/dom/blocks/each.js @@ -153,7 +153,6 @@ function each(anchor_node, collection, flags, key_fn, render_fn, fallback_fn, re fallback = render_effect( () => { let anchor = anchor_node; - const is_controlled = (block.f & EACH_IS_CONTROLLED) !== 0; if (is_controlled) { // If the each block is controlled, then the anchor node will be the surrounding @@ -170,7 +169,7 @@ function each(anchor_node, collection, flags, key_fn, render_fn, fallback_fn, re } } - /** @type {(anchor: Node) => void} */ (fallback_fn)(anchor); + fallback_fn(anchor); var dom = block.d; // TODO would be nice if this was just returned from the managed effect function... return () => {