Azure: Fixing a confusing variable name (#97598)

Fixing a confusing variable name
This commit is contained in:
Andreas Christou 2024-12-10 11:39:31 +00:00 committed by GitHub
parent 85392de2e7
commit 448d87157c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}