fix warning in api/handlers/cow.go
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -130,7 +130,7 @@ func (c Cow) UpdateCowHandler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
b, err := json.Marshal(dbResp) // TODO: get rid of this warning cause its bothering me
|
||||
b, err := json.Marshal(dbResp)
|
||||
if err != nil {
|
||||
config.ErrorStatus("failed ot marshal response", http.StatusInternalServerError, w, err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user