From f03c7af1bbd376f64e4952d45c210110ee7fd54f Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sat, 29 Jun 2024 15:09:15 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legacy/src/ai-function-set.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/legacy/src/ai-function-set.ts b/legacy/src/ai-function-set.ts index d28607d6..ad2e06c1 100644 --- a/legacy/src/ai-function-set.ts +++ b/legacy/src/ai-function-set.ts @@ -32,8 +32,7 @@ export class AIFunctionSet implements Iterable { return fn } - const f = fn as any - const fa = (f.functions ?? f) as AIFunctionSet + const fa = ((fn as any).functions ?? fn) as AIFunctionSet if (fa) { try { const fns = [...fa]