Skip to content

Commit

Permalink
remove unnecessary continue in dingo.go
Browse files Browse the repository at this point in the history
  • Loading branch information
teckick authored and bastianccm committed Apr 30, 2021
1 parent 6df0d34 commit a85f833
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dingo.go
Expand Up @@ -704,7 +704,6 @@ func (injector *Injector) requestInjection(object interface{}, circularTrace []c
setup.Call(args)
}
injectlist = append(injectlist, current.Elem())
continue

// inject into struct fields
case reflect.Struct:
Expand Down Expand Up @@ -746,16 +745,13 @@ func (injector *Injector) requestInjection(object interface{}, circularTrace []c
if !current.IsNil() {
injectlist = append(injectlist, current.Elem())
}
continue

case reflect.Slice:
for i := 0; i < current.Len(); i++ {
injectlist = append(injectlist, current.Index(i))
}
continue

default:
continue
}
}
return nil
Expand Down

0 comments on commit a85f833

Please sign in to comment.