1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

CI: minor: use the new exclude-paths (dependabot PR approved some days ago)

This commit is contained in:
Gerasimos (Makis) Maropoulos
2025-08-16 22:48:38 +03:00
parent a8a3afea22
commit 92164cee52
37 changed files with 268 additions and 266 deletions

View File

@@ -93,7 +93,7 @@ func isIrisHandlerType(typ reflect.Type) bool {
return typ == irisHandlerType || typ == irisHandlerFuncType
}
func makeHandler(fn interface{}, c *Container, paramsCount int) context.Handler {
func makeHandler(fn any, c *Container, paramsCount int) context.Handler {
if fn == nil {
panic("makeHandler: function is nil")
}
@@ -184,7 +184,7 @@ func makeHandler(fn interface{}, c *Container, paramsCount int) context.Handler
}
}
func isHandler(fn interface{}) (context.Handler, bool) {
func isHandler(fn any) (context.Handler, bool) {
if handler, ok := fn.(context.Handler); ok {
return handler, ok
}
@@ -196,7 +196,7 @@ func isHandler(fn interface{}) (context.Handler, bool) {
return nil, false
}
func isHandlerWithError(fn interface{}) (func(*context.Context) error, bool) {
func isHandlerWithError(fn any) (func(*context.Context) error, bool) {
if handlerWithErr, ok := fn.(func(*context.Context) error); ok {
return handlerWithErr, true
}