This commit is contained in:
@@ -139,8 +139,7 @@ func (s *HTTPServer) HandlerAPIFileDelete(w http.ResponseWriter, r *http.Request
|
||||
return
|
||||
}
|
||||
|
||||
err := s.Files.Delete(id)
|
||||
if err != nil {
|
||||
if err := s.Files.Delete(id); err != nil {
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user