1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 20:17:05 +00:00

linting, 99% is not fine let's do it 100%

Former-commit-id: 45d246e8d14deb7c238e01e6a2b1648a9ddf39c0
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-01-04 16:34:04 +02:00
parent d946d11dff
commit 2e9cf2def7
5 changed files with 37 additions and 1 deletions

View File

@@ -145,6 +145,8 @@ func (s *FuncInjector) addValue(inputIndex int, value reflect.Value) bool {
return false
}
// Retry used to add missing dependencies, i.e path parameter built'n bindings if not already exists
// in the `hero.Handler`, once, only for that func injector.
func (s *FuncInjector) Retry(retryFn func(inIndex int, inTyp reflect.Type) (reflect.Value, bool)) bool {
for _, missing := range s.lost {
if missing.found {