Skip to content

Commit

Permalink
Fix GoReport issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bb4L committed Jul 9, 2021
1 parent 9e9ea70 commit 814555d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apiserver/alarm/alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,15 @@ func getAlarm(w http.ResponseWriter, r *http.Request) {
// TODO: move the parseIdx inside the storage helper
alarmIdx, errIdx := helper.ParseIdx(w, pathParams, alarms)
if errIdx != nil {
logger.Printf("Received error: %s", errIdx)
logger.Println(errIdx)
logger.Printf("Received error: %s\n", errIdx)
return
}

alarm, err := storageHelper.GetAlarm(alarmIdx, false)
if err != nil {
helper.HandleStorageError(w, err)
return
}

jsonData, err := json.Marshal(alarm)
if err != nil {
Expand Down

0 comments on commit 814555d

Please sign in to comment.