fix lint issues

This commit is contained in:
René 2025-05-24 23:53:16 +02:00
parent 4fbcebffd8
commit c956f6c35e
2 changed files with 2 additions and 2 deletions

2
app.go
View File

@ -624,7 +624,7 @@ func New(config ...Config) *App {
} }
// NewWithCustomCtx creates a new Fiber instance and applies the // NewWithCustomCtx creates a new Fiber instance and applies the
// provided function to generate a custom context type. It mirrors the behaviour // provided function to generate a custom context type. It mirrors the behavior
// of calling `New()` followed by `app.setCtxFunc(fn)`. // of calling `New()` followed by `app.setCtxFunc(fn)`.
func NewWithCustomCtx(newCtxFunc func(app *App) CustomCtx, config ...Config) *App { func NewWithCustomCtx(newCtxFunc func(app *App) CustomCtx, config ...Config) *App {
app := New(config...) app := New(config...)

View File

@ -107,7 +107,7 @@ func (r *Route) match(detectionPath, path string, params *[maxParams]string) boo
return false return false
} }
func (app *App) next(c CustomCtx) (bool, error) { //nolint:unparam // bool param might be useful for testing func (app *App) next(c CustomCtx) (bool, error) {
// Get stack length // Get stack length
tree, ok := app.treeStack[c.getMethodInt()][c.getTreePathHash()] tree, ok := app.treeStack[c.getMethodInt()][c.getTreePathHash()]
if !ok { if !ok {