Skip to content

Commit 7b33b2a

Browse files
committed
fix lint
1 parent c82fb3a commit 7b33b2a

File tree

1 file changed

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

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ import { Batch, schedule_effect } from './batch.js';
4848
import { flatten } from './async.js';
4949

5050
/**
51-
* If an effect can be created in the current context, `VALID_EFFECT_PARENT` is returned.
52-
* If not, a value indicating why is returned.
51+
* If an effect can be created in the current context, `VALID_EFFECT_PARENT` is returned.
52+
* If not, a value indicating why is returned.
5353
* @returns {number}
5454
*/
5555
function active_root_effect() {
@@ -73,15 +73,18 @@ function active_root_effect() {
7373
*/
7474
export function validate_effect(rune) {
7575
const valid_effect_parent = active_root_effect();
76-
switch(valid_effect_parent) {
76+
switch (valid_effect_parent) {
7777
case VALID_EFFECT_PARENT:
7878
return;
7979
case EFFECT_ORPHAN:
8080
e.effect_orphan(rune);
81+
break;
8182
case UNOWNED_DERIVED_PARENT:
8283
e.effect_in_unowned_derived();
84+
break;
8385
case EFFECT_TEARDOWN:
8486
e.effect_in_teardown(rune);
87+
break;
8588
}
8689
}
8790

0 commit comments

Comments
 (0)