♻️ Refactor: return nil in HandlerFromContext

pull/3340/head
JIeJaitt 2025-03-13 17:34:59 +08:00
parent 5b2476716a
commit 1df0862133
1 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@ import (
"time"
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/log"
"github.com/gofiber/utils/v2"
)
@ -229,7 +228,7 @@ func HandlerFromContext(c any) *Handler {
return handler
}
default:
log.Errorf("Unsupported context type: %T. Expected fiber.Ctx or context.Context", c)
return nil
}
return nil
}