@@ -247,9 +247,9 @@ func (w *compareWalker) visitListItems(t *schema.List, lhs, rhs value.List) (err
247
247
continue
248
248
}
249
249
rValues .Insert (pe , rValue )
250
- // We can merge with nil if lValue is not present.
250
+ // We can compare with nil if lValue is not present.
251
251
lValue , _ := lValues .Get (pe )
252
- errs = append (errs , w .mergeListItem (t , pe , lValue , rValue )... )
252
+ errs = append (errs , w .compareListItem (t , pe , lValue , rValue )... )
253
253
}
254
254
255
255
// Add items from left that are not in right.
@@ -266,7 +266,7 @@ func (w *compareWalker) visitListItems(t *schema.List, lhs, rhs value.List) (err
266
266
if _ , found := rValues .Get (pe ); found {
267
267
continue
268
268
}
269
- errs = append (errs , w .mergeListItem (t , pe , lValue , nil )... )
269
+ errs = append (errs , w .compareListItem (t , pe , lValue , nil )... )
270
270
}
271
271
272
272
return
@@ -300,7 +300,7 @@ func (w *compareWalker) indexListPathElements(t *schema.List, list value.List) (
300
300
return pes , observed , errs
301
301
}
302
302
303
- func (w * compareWalker ) mergeListItem (t * schema.List , pe fieldpath.PathElement , lChild , rChild value.Value ) ValidationErrors {
303
+ func (w * compareWalker ) compareListItem (t * schema.List , pe fieldpath.PathElement , lChild , rChild value.Value ) ValidationErrors {
304
304
w2 := w .prepareDescent (pe , t .ElementType , w .comparison )
305
305
w2 .lhs = lChild
306
306
w2 .rhs = rChild
0 commit comments