This commit is contained in:
parent
030806b0c4
commit
f78c68d46c
@ -28,6 +28,7 @@ linters:
|
||||
- stylecheck
|
||||
- exportloopref
|
||||
- godot
|
||||
|
||||
linters-settings:
|
||||
gomnd:
|
||||
ignored-functions:
|
||||
|
@ -11,9 +11,9 @@ pipeline:
|
||||
event: [push, pull_request, tag, deployment]
|
||||
|
||||
lint:
|
||||
image: golangci/golangci-lint:latest
|
||||
image: golangci/golangci-lint:v1.43.0
|
||||
commands:
|
||||
- golangci-lint run -v
|
||||
- golangci-lint run
|
||||
when:
|
||||
event: [push, pull_request]
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user