Skip to content

Commit

Permalink
Remove unnecessary error check (#5192)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnibs authored Jul 25, 2024
1 parent f3eefd8 commit 52d9fb6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lake/api/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ func (r *remote) QueryWithControl(ctx context.Context, head *lakeparse.Commitish
if err != nil {
return nil, err
}
q, err := queryio.NewQuery(res.Body), nil
if err != nil {
return nil, err
}
q := queryio.NewQuery(res.Body)
return zbuf.MeterReadCloser(q), nil
}

Expand Down

0 comments on commit 52d9fb6

Please sign in to comment.