mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
version 12.1.5
Former-commit-id: cda69f08955cb0d594e98bf26197ee573cbba4b2
This commit is contained in:
@@ -273,11 +273,7 @@ func (c *ControllerActivator) activate() {
|
||||
}
|
||||
|
||||
func (c *ControllerActivator) addErr(err error) bool {
|
||||
if c.router.GetReporter().Err(err) != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
return c.router.GetReporter().Err(err) != nil
|
||||
}
|
||||
|
||||
// register all available, exported methods to handlers if possible.
|
||||
@@ -492,7 +488,7 @@ func (c *ControllerActivator) handlerOf(m reflect.Method, funcDependencies []ref
|
||||
ctxValue = reflect.ValueOf(ctx)
|
||||
}
|
||||
|
||||
in := make([]reflect.Value, n, n)
|
||||
in := make([]reflect.Value, n)
|
||||
in[0] = ctrl
|
||||
funcInjector.Inject(&in, ctxValue)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user