Chore: Upgrade golangci-lint to v1.51.2 (#63630)
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
This commit is contained in:
co-authored by
Sofia Papagiannaki
parent
c769a6281e
commit
3abaf32cf2
@@ -357,12 +357,17 @@ func executeWithHeaders(tctx *testContext, query backend.DataQuery, qr interface
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
tctx.httpProvider.setResponse(promRes)
|
||||
|
||||
res, err := tctx.queryData.Execute(context.Background(), &req)
|
||||
errClose := promRes.Body.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if errClose != nil {
|
||||
return nil, errClose
|
||||
}
|
||||
|
||||
return res.Responses[req.Queries[0].RefID].Frames, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user