Skip to content

Commit 133644f

Browse files
committed
appease eslint
1 parent 50b4275 commit 133644f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/svelte/src/internal/client/dev/console-log.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { untrack } from '../runtime.js';
88
* @param {...any} objects
99
*/
1010
export function log_if_contains_state(method, ...objects) {
11-
return untrack(() => {
11+
untrack(() => {
1212
try {
1313
let has_state = false;
1414
const transformed = [];
@@ -28,8 +28,8 @@ export function log_if_contains_state(method, ...objects) {
2828
// eslint-disable-next-line no-console
2929
console.log('%c[snapshot]', 'color: grey', ...transformed);
3030
}
31-
} finally {
32-
return objects;
33-
}
31+
} catch {}
3432
});
33+
34+
return objects;
3535
}

0 commit comments

Comments
 (0)