diff --git a/api.go b/api.go index d650856..e038113 100644 --- a/api.go +++ b/api.go @@ -69,12 +69,6 @@ func (s *Server) category(w http.ResponseWriter, req *http.Request) { http.Error(w, string(b), http.StatusInternalServerError) return } - if err != nil { - log.Printf("%+v", err) - b, _ := json.Marshal(NewFailure(err.Error())) - http.Error(w, string(b), http.StatusBadRequest) - return - } } } @@ -179,11 +173,5 @@ func (s *Server) user(w http.ResponseWriter, req *http.Request) { http.Error(w, string(b), http.StatusInternalServerError) return } - if err != nil { - log.Printf("%+v", err) - b, _ := json.Marshal(NewFailure(err.Error())) - http.Error(w, string(b), http.StatusBadRequest) - return - } } }