Fix linting.
Linting and tests / Tests (push) Successful in 17s
Linting and tests / Linting (push) Successful in 19s

This commit is contained in:
2026-06-10 10:25:31 +05:00
parent 3d43b8a84e
commit 0db14666d0
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -17,6 +17,7 @@ linters:
- varnamelen - varnamelen
- noinlineerr - noinlineerr
- wsl - wsl
- gomodguard # deprecated
settings: settings:
cyclop: cyclop:
max-complexity: 30 max-complexity: 30
+1 -1
View File
@@ -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)
} }