Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 12, 2024
1 parent 177fcc9 commit d5d1f46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/svelte/src/internal/client/reactivity/deriveds.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ let stack = [];
* @returns {void}
*/
export function update_derived(derived) {
var value;

if (DEV) {
try {
if (stack.includes(derived)) {
Expand All @@ -100,13 +102,13 @@ export function update_derived(derived) {
stack.push(derived);

destroy_derived_children(derived);
var value = update_reaction(derived);
value = update_reaction(derived);
} finally {
stack.pop();
}
} else {
destroy_derived_children(derived);
var value = update_reaction(derived);
value = update_reaction(derived);
}

var status =
Expand Down

0 comments on commit d5d1f46

Please sign in to comment.