mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
fix lint issues
This commit is contained in:
parent
4fbcebffd8
commit
c956f6c35e
2
app.go
2
app.go
@ -624,7 +624,7 @@ func New(config ...Config) *App {
|
||||
}
|
||||
|
||||
// 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)`.
|
||||
func NewWithCustomCtx(newCtxFunc func(app *App) CustomCtx, config ...Config) *App {
|
||||
app := New(config...)
|
||||
|
@ -107,7 +107,7 @@ func (r *Route) match(detectionPath, path string, params *[maxParams]string) boo
|
||||
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
|
||||
tree, ok := app.treeStack[c.getMethodInt()][c.getTreePathHash()]
|
||||
if !ok {
|
||||
|
Loading…
x
Reference in New Issue
Block a user