distinct: return emtpy slice

This commit is contained in:
Sebastien Blot 2023-08-02 11:43:49 +02:00
parent 885c283097
commit 59e3d0dfce
No known key found for this signature in database
GPG key ID: DFC2902F40449F6A

View file

@ -180,7 +180,7 @@ func Distinct(params ...any) (any, error) {
} }
array := params[0].([]interface{}) array := params[0].([]interface{})
if array == nil { if array == nil {
return nil, nil return []interface{}{}, nil
} }
var exists map[any]bool = make(map[any]bool) var exists map[any]bool = make(map[any]bool)