1
0
Fork 0

Check for error here is not needed.

This commit is contained in:
Alexander Andreev 2023-05-22 23:24:35 +04:00
parent 67c6902217
commit a35b1a336b
Signed by: Arav
GPG Key ID: D22A817D95815393
1 changed files with 0 additions and 4 deletions

View File

@ -280,10 +280,6 @@ func (h *MindflowApiHandlers) Edit(w http.ResponseWriter, r *http.Request) {
if r.FormValue("category") != "" {
category.ID, _ = strconv.ParseInt(r.FormValue("category"), 10, 64)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
if category.ID == 0 {
category.ID, err = h.db.NewCategory(r.FormValue("new-category"))