Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jensneuse committed Oct 31, 2023
1 parent 477db4a commit 199b8d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions v2/pkg/astjson/astjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ func (j *JSON) parseArray(array []byte, start int) (ref int, parseArrayErr error
Kind: NodeKindArray,
ArrayValues: j.getIntSlice(),
}
// nolint:staticcheck
_, err := jsonparser.ArrayEach(array, func(value []byte, dataType jsonparser.ValueType, offset int, err error) {
storageStart := start + offset
if dataType == jsonparser.String {
Expand Down
7 changes: 5 additions & 2 deletions v2/pkg/engine/resolve/v2load.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func (l *V2Loader) loadEntityFetch(ctx context.Context, fetch *EntityFetch, item
err = fetch.Input.Item.Render(l.ctx, itemData.Bytes(), item)
if err != nil {
if fetch.Input.SkipErrItem {
err = nil
err = nil // nolint:ineffassign
// skip fetch on render item error
return nil
}
Expand Down Expand Up @@ -449,12 +449,15 @@ WithNextItem:
for i, item := range items {
itemData.Reset()
err = l.data.PrintNode(l.data.Nodes[item], itemData)
if err != nil {
return errors.WithStack(err)
}
for j := range fetch.Input.Items {
itemInput.Reset()
err = fetch.Input.Items[j].Render(l.ctx, itemData.Bytes(), itemInput)
if err != nil {
if fetch.Input.SkipErrItems {
err = nil
err = nil // nolint:ineffassign
res.batchStats[i] = append(res.batchStats[i], -1)
continue
}
Expand Down

0 comments on commit 199b8d9

Please sign in to comment.