libnetwork/options/options.go
Function GenerateFromModel
has 5 return statements (exceeds 4 allowed). Open
Open
func GenerateFromModel(options Generic, model interface{}) (interface{}, error) {
modType := reflect.TypeOf(model)
// If the model is of pointer type, we need to dereference for New.
resType := reflect.TypeOf(model)