completed list-type to array-type conversion and fixed common test module
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ func evalUnset(ctx kern.ExprContext, opTerm *scan.Term) (v any, err error) {
|
||||
}
|
||||
|
||||
count := 0
|
||||
if array.IsList(childValue) {
|
||||
if array.IsArray(childValue) {
|
||||
list, _ := childValue.(*array.ArrayType)
|
||||
for _, item := range *list {
|
||||
if deleted, err = deleteContextItem(ctx, opTerm, item); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user