Skip to content

Commit

Permalink
fix: unknown type due to dae-wing fixed policy (#582)
Browse files Browse the repository at this point in the history
Co-authored-by: Sumire (菫) <[email protected]>
  • Loading branch information
wanlce and sumire88 authored Jul 22, 2024
1 parent c3ccf17 commit 0a7c9e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0a7c9e6

Please sign in to comment.