From 80a6d48e18de7b9c013413af644e3ba25c19c095 Mon Sep 17 00:00:00 2001 From: Eugene Date: Wed, 15 Dec 2021 17:32:34 -0600 Subject: [PATCH] lint: naming --- app/status/ext_service.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/status/ext_service.go b/app/status/ext_service.go index a85b125..cbb37de 100644 --- a/app/status/ext_service.go +++ b/app/status/ext_service.go @@ -83,15 +83,15 @@ func (es *ExtServices) Status() []ExtServiceResp { return } - var bodyJson map[string]interface{} - if err := json.Unmarshal(bodyStr, &bodyJson); err != nil { - bodyJson = map[string]interface{}{"text": string(bodyStr)} + var bodyJSON map[string]interface{} + if err := json.Unmarshal(bodyStr, &bodyJSON); err != nil { + bodyJSON = map[string]interface{}{"text": string(bodyStr)} } resp := ExtServiceResp{ Name: s.Name, StatusCode: res.StatusCode, ResponseTime: time.Since(st).Milliseconds(), - Body: bodyJson, + Body: bodyJSON, } ch <- resp log.Printf("[DEBUG] ext_service reposne: %s:%s %+v", s.Name, s.URL, resp)