From 0a7c9e64593e504c2994298cbae6ad89e5cc8401 Mon Sep 17 00:00:00 2001 From: wano <55907021+wanlce@users.noreply.github.com> Date: Mon, 22 Jul 2024 08:54:27 +0800 Subject: [PATCH] fix: unknown type due to dae-wing fixed policy (#582) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sumire (菫) <151038614+sumire88@users.noreply.github.com> --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config.go b/config/config.go index 4031e4e..0c21515 100644 --- a/config/config.go +++ b/config/config.go @@ -73,6 +73,8 @@ func FunctionListOrStringToFunctionList(fs FunctionListOrString) (f []*config_pa switch fs := fs.(type) { case string: return []*config_parser.Function{{Name: fs}} + case *config_parser.Function: + return []*config_parser.Function{fs} case []*config_parser.Function: return fs default: