Fix linting.
This commit is contained in:
@@ -50,6 +50,7 @@ func (h *httpServer) configureHTTPServer() error {
|
||||
|
||||
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) {
|
||||
//nolint:modernize
|
||||
for i := len(h.middlewares) - 1; i >= 0; i-- {
|
||||
handler = h.middlewares[i](handler)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user