We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a48342a commit 7599b8eCopy full SHA for 7599b8e
packages/repl/src/lib/Output/AstView.svelte
@@ -20,10 +20,10 @@
20
let path_nodes = $derived(find_deepest_path(cursor, [ast]) || []);
21
22
function find_deepest_path(cursor: number | null, paths: Ast[]): Ast[] | undefined {
23
- if (cursor === null) return null;
+ if (cursor === null) return;
24
const value = paths[paths.length - 1];
25
26
- if (!value) return null;
+ if (!value) return;
27
28
for (const v of Object.values(value)) {
29
if (typeof v === 'object') {
0 commit comments