influxdb - fix nil pointer usage - fixes #100723 (#100724)

When introducing errorsource over in:

https://github.com/grafana/grafana/pull/99900

I introduced a bug - trying to use a http response with a non-nil error.
In that case, the response is nil, so code panics.

This PR removes that check.
pull/100360/head^2
beejeebus 4 months ago committed by GitHub
parent af8cab9210
commit 196a73ec72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      pkg/tsdb/influxdb/influxql/influxql.go

@ -177,7 +177,6 @@ func execute(ctx context.Context, tracer trace.Tracer, dsInfo *models.Datasource
if err != nil {
return backend.DataResponse{
Error: err,
ErrorSource: backend.ErrorSourceFromHTTPStatus(res.StatusCode),
}, err
}
defer func() {

Loading…
Cancel
Save