From 448d87157c729d70d4ba418690cb48a30d52a755 Mon Sep 17 00:00:00 2001 From: Andreas Christou Date: Tue, 10 Dec 2024 11:39:31 +0000 Subject: [PATCH] Azure: Fixing a confusing variable name (#97598) Fixing a confusing variable name --- pkg/tsdb/azuremonitor/azuremonitor-resource-handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tsdb/azuremonitor/azuremonitor-resource-handler.go b/pkg/tsdb/azuremonitor/azuremonitor-resource-handler.go index 96f3f53b952..c761b271f88 100644 --- a/pkg/tsdb/azuremonitor/azuremonitor-resource-handler.go +++ b/pkg/tsdb/azuremonitor/azuremonitor-resource-handler.go @@ -121,8 +121,8 @@ func writeErrorResponse(rw http.ResponseWriter, code int, msg string) { errorBody := map[string]string{ "error": msg, } - json, _ := json.Marshal(errorBody) - _, err := rw.Write(json) + jsonRes, _ := json.Marshal(errorBody) + _, err := rw.Write(jsonRes) if err != nil { backend.Logger.Error("Unable to write HTTP response", "error", err) }