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
@@ -178,6 +178,13 @@ func (e *AzureLogAnalyticsDatasource) executeQuery(ctx context.Context, logger l
|
||||
return dataResponseErrorWithExecuted(err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
err := res.Body.Close()
|
||||
if err != nil {
|
||||
logger.Warn("failed to close response body", "error", err)
|
||||
}
|
||||
}()
|
||||
|
||||
logResponse, err := e.unmarshalResponse(logger, res)
|
||||
if err != nil {
|
||||
return dataResponseErrorWithExecuted(err)
|
||||
|
||||
Reference in New Issue
Block a user