@@ -216,7 +216,7 @@ func (w *compareWalker) visitListItems(t *schema.List, lhs, rhs value.List) (err
216216 lValues := fieldpath .MakePathElementValueMap (lLen )
217217 for i := 0 ; i < lLen ; i ++ {
218218 child := lhs .At (i )
219- pe , err := listItemToPathElement (w .allocator , w .schema , t , i , child )
219+ pe , err := listItemToPathElement (w .allocator , w .schema , t , child )
220220 if err != nil {
221221 errs = append (errs , errorf ("element %v: %v" , i , err .Error ())... )
222222 // If we can't construct the path element, we can't
@@ -234,7 +234,7 @@ func (w *compareWalker) visitListItems(t *schema.List, lhs, rhs value.List) (err
234234 rValues := fieldpath .MakePathElementValueMap (rLen )
235235 for i := 0 ; i < rLen ; i ++ {
236236 rValue := rhs .At (i )
237- pe , err := listItemToPathElement (w .allocator , w .schema , t , i , rValue )
237+ pe , err := listItemToPathElement (w .allocator , w .schema , t , rValue )
238238 if err != nil {
239239 errs = append (errs , errorf ("element %v: %v" , i , err .Error ())... )
240240 // If we can't construct the path element, we can't
@@ -255,7 +255,7 @@ func (w *compareWalker) visitListItems(t *schema.List, lhs, rhs value.List) (err
255255 // Add items from left that are not in right.
256256 for i := 0 ; i < lLen ; i ++ {
257257 lValue := lhs .At (i )
258- pe , err := listItemToPathElement (w .allocator , w .schema , t , i , lValue )
258+ pe , err := listItemToPathElement (w .allocator , w .schema , t , lValue )
259259 if err != nil {
260260 errs = append (errs , errorf ("element %v: %v" , i , err .Error ())... )
261261 // If we can't construct the path element, we can't
@@ -282,7 +282,7 @@ func (w *compareWalker) indexListPathElements(t *schema.List, list value.List) (
282282 pes := make ([]fieldpath.PathElement , 0 , length )
283283 for i := 0 ; i < length ; i ++ {
284284 child := list .At (i )
285- pe , err := listItemToPathElement (w .allocator , w .schema , t , i , child )
285+ pe , err := listItemToPathElement (w .allocator , w .schema , t , child )
286286 if err != nil {
287287 errs = append (errs , errorf ("element %v: %v" , i , err .Error ())... )
288288 // If we can't construct the path element, we can't
0 commit comments