Azure: Fixing a confusing variable name (#97598)

Fixing a confusing variable name
pull/97643/head^2
Andreas Christou 5 months ago committed by GitHub
parent 85392de2e7
commit 448d87157c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      pkg/tsdb/azuremonitor/azuremonitor-resource-handler.go

@ -121,8 +121,8 @@ func writeErrorResponse(rw http.ResponseWriter, code int, msg string) {
errorBody := map[string]string{ errorBody := map[string]string{
"error": msg, "error": msg,
} }
json, _ := json.Marshal(errorBody) jsonRes, _ := json.Marshal(errorBody)
_, err := rw.Write(json) _, err := rw.Write(jsonRes)
if err != nil { if err != nil {
backend.Logger.Error("Unable to write HTTP response", "error", err) backend.Logger.Error("Unable to write HTTP response", "error", err)
} }

Loading…
Cancel
Save