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
@@ -15,10 +15,11 @@ import (
|
||||
|
||||
"github.com/grafana/grafana-plugin-sdk-go/backend"
|
||||
"github.com/grafana/grafana-plugin-sdk-go/data"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
|
||||
"github.com/grafana/grafana/pkg/infra/log"
|
||||
"github.com/grafana/grafana/pkg/infra/tracing"
|
||||
"github.com/grafana/grafana/pkg/tsdb/intervalv2"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
)
|
||||
|
||||
func addInterval(period string, field *data.Field) error {
|
||||
@@ -86,6 +87,11 @@ func doRequestPage(ctx context.Context, logger log.Logger, r *http.Request, dsIn
|
||||
return cloudMonitoringResponse{}, err
|
||||
}
|
||||
|
||||
defer func() {
|
||||
err := res.Body.Close()
|
||||
logger.Warn("failed to close response body", "error", err)
|
||||
}()
|
||||
|
||||
dnext, err := unmarshalResponse(logger, res)
|
||||
if err != nil {
|
||||
return cloudMonitoringResponse{}, err
|
||||
|
||||
Reference in New Issue
Block a user