The name of 'list' has been changed to 'array'; from now on, 'list' will refer to the linked list.
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ func evalUnset(ctx kern.ExprContext, opTerm *scan.Term) (v any, err error) {
|
||||
|
||||
count := 0
|
||||
if array.IsList(childValue) {
|
||||
list, _ := childValue.(*array.ListType)
|
||||
list, _ := childValue.(*array.ArrayType)
|
||||
for _, item := range *list {
|
||||
if deleted, err = deleteContextItem(ctx, opTerm, item); err != nil {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user