Skip to content

Commit

Permalink
lint: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Dec 15, 2021
1 parent d4a8167 commit 80a6d48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/status/ext_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 80a6d48

Please sign in to comment.