Skip to content

Commit 96ddf85

Browse files
committed
Fix lint errors
1 parent e005bd7 commit 96ddf85

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/runtime/internal/scheduler.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ export function flush() {
3636

3737
let current_component = null;
3838
try {
39-
current_component = get_current_component()
40-
} catch {}
39+
current_component = get_current_component();
40+
} catch {
41+
// no current component, so leave it as null
42+
}
4143

4244
do {
4345
// first, call beforeUpdate functions

0 commit comments

Comments
 (0)