libnetwork/driverapi/ipamdata.go
Method IPAMData.Validate
has 7 return statements (exceeds 4 allowed). Open
Open
func (i *IPAMData) Validate() error {
var isV6 bool
if i.Pool == nil {
return types.InvalidParameterErrorf("invalid pool")
}
Method IPAMData.UnmarshalJSON
has 6 return statements (exceeds 4 allowed). Open
Open
func (i *IPAMData) UnmarshalJSON(data []byte) error {
var (
m map[string]interface{}
err error
)