mirror of
https://github.com/kataras/iris.git
synced 2026-01-06 03:27:27 +00:00
formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
This commit is contained in:
@@ -88,7 +88,7 @@ func MakeFuncInjector(fn reflect.Value, hijack Hijacker, goodFunc TypeChecker, v
|
||||
// again, a next value even with the same type is able to be
|
||||
// used to other input arg. One value per input argument, order
|
||||
// matters if same type of course.
|
||||
//if len(values) > j+1 {
|
||||
// if len(values) > j+1 {
|
||||
values = append(values[:j], values[j+1:]...)
|
||||
//}
|
||||
|
||||
@@ -126,7 +126,6 @@ func (s *FuncInjector) addValue(inputIndex int, value reflect.Value) bool {
|
||||
|
||||
// the binded values to the func's inputs.
|
||||
b, err := MakeBindObject(value, s.goodFunc)
|
||||
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
@@ -197,7 +196,6 @@ func (s *FuncInjector) Inject(in *[]reflect.Value, ctx ...reflect.Value) {
|
||||
// input.InputIndex, v.String(), v.Type().Name())
|
||||
args[input.InputIndex] = v
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
*in = args
|
||||
|
||||
Reference in New Issue
Block a user