libnetwork/drivers/overlay/overlay.go
Method driver.DiscoverNew
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (d *driver) DiscoverNew(dType discoverapi.DiscoveryType, data interface{}) error {
switch dType {
case discoverapi.NodeDiscovery:
nodeData, ok := data.(discoverapi.NodeDiscoveryData)
if !ok {
Method driver.DiscoverNew
has 6 return statements (exceeds 4 allowed). Open
Open
func (d *driver) DiscoverNew(dType discoverapi.DiscoveryType, data interface{}) error {
switch dType {
case discoverapi.NodeDiscovery:
nodeData, ok := data.(discoverapi.NodeDiscoveryData)
if !ok {