Fix linting.
This commit is contained in:
@@ -17,6 +17,7 @@ linters:
|
|||||||
- varnamelen
|
- varnamelen
|
||||||
- noinlineerr
|
- noinlineerr
|
||||||
- wsl
|
- wsl
|
||||||
|
- gomodguard # deprecated
|
||||||
settings:
|
settings:
|
||||||
cyclop:
|
cyclop:
|
||||||
max-complexity: 30
|
max-complexity: 30
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
module go.dev.pztrn.name/vikunja-notifier
|
module go.dev.pztrn.name/vikunja-notifier
|
||||||
|
|
||||||
go 1.26.4
|
go 1.26.3
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ func (h *httpServer) configureHTTPServer() error {
|
|||||||
|
|
||||||
func (h *httpServer) RegisterHandler(method, path string, handler http.HandlerFunc) {
|
func (h *httpServer) RegisterHandler(method, path string, handler http.HandlerFunc) {
|
||||||
h.httpMux.HandleFunc(fmt.Sprintf("%s %s", method, path), func(w http.ResponseWriter, r *http.Request) {
|
h.httpMux.HandleFunc(fmt.Sprintf("%s %s", method, path), func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
//nolint:modernize
|
||||||
for i := len(h.middlewares) - 1; i >= 0; i-- {
|
for i := len(h.middlewares) - 1; i >= 0; i-- {
|
||||||
handler = h.middlewares[i](handler)
|
handler = h.middlewares[i](handler)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user