From c51030b3bda7c9abdfdf2007e7e915c6a4e53038 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 29 Oct 2025 12:50:56 -0700 Subject: [PATCH] sure --- src/utils/tree.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/tree.ts b/src/utils/tree.ts index 7a2b36a..45a9318 100644 --- a/src/utils/tree.ts +++ b/src/utils/tree.ts @@ -1,5 +1,4 @@ import { Tree, TreeCursor } from '@lezer/common' -import { assertNever } from '#utils/utils' import { type Value, fromValue } from 'reefvm' export const treeToString = (tree: Tree, input: string): string => { @@ -35,6 +34,5 @@ export const treeToString = (tree: Tree, input: string): string => { } export const VMResultToValue = (result: Value): unknown => { - if (result.type === 'function') return Function - else return fromValue(result) + return result.type === 'function' ? Function : fromValue(result) }