Fix linting error
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2022-01-24 20:32:49 +01:00
parent 030806b0c4
commit f78c68d46c
3 changed files with 4 additions and 4 deletions

View File

@@ -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
}