From 94d7f7b1240c21a246e103f596d425b61fe0a23c Mon Sep 17 00:00:00 2001 From: Allan Guigou <34221163+AllanGuigou@users.noreply.github.com> Date: Thu, 8 Jan 2026 14:33:34 +0000 Subject: [PATCH] Remove unncessary type conversion --- expressions/src/funcs/case.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expressions/src/funcs/case.ts b/expressions/src/funcs/case.ts index ccd5fd2..4ec5fe1 100644 --- a/expressions/src/funcs/case.ts +++ b/expressions/src/funcs/case.ts @@ -1,4 +1,4 @@ -import {BooleanData, ExpressionData, Kind} from "../data/index.js"; +import {ExpressionData, Kind} from "../data/index.js"; import {FunctionDefinition} from "./info.js"; export const caseFunc: FunctionDefinition = { @@ -18,7 +18,7 @@ export const caseFunc: FunctionDefinition = { } // If predicate is true, return the corresponding result - if ((predicate as BooleanData).value) { + if (predicate.value) { return args[i + 1]; } }