distinct: return emtpy slice
This commit is contained in:
parent
885c283097
commit
59e3d0dfce
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ func Distinct(params ...any) (any, error) {
|
|||
}
|
||||
array := params[0].([]interface{})
|
||||
if array == nil {
|
||||
return nil, nil
|
||||
return []interface{}{}, nil
|
||||
}
|
||||
|
||||
var exists map[any]bool = make(map[any]bool)
|
||||
|
|
Loading…
Reference in a new issue