Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
4 months ago4 months old
func injectDependencies has a cyclomatic complexity of 30 with "very-high" risk
256	return nil
257}
258
259func injectDependencies(beanID string, instance interface{}, chain map[string]bool) error {260	logrus.WithField("beanID", beanID).Trace("injecting dependencies")
261	instanceType := beans[beanID]
262	instanceElement := instanceType.Elem()