dotcloud/docker

View on GitHub
libnetwork/drivers/overlay/ov_endpoint.go

Summary

Maintainability
A
1 hr
Test Coverage

Method driver.CreateEndpoint has 7 return statements (exceeds 4 allowed).
Open

func (d *driver) CreateEndpoint(_ context.Context, nid, eid string, ifInfo driverapi.InterfaceInfo, epOptions map[string]interface{}) error {
    var err error
    if err = validateID(nid, eid); err != nil {
        return err
    }
Severity: Major
Found in libnetwork/drivers/overlay/ov_endpoint.go - About 45 mins to fix

    Method driver.DeleteEndpoint has 6 return statements (exceeds 4 allowed).
    Open

    func (d *driver) DeleteEndpoint(nid, eid string) error {
        nlh := ns.NlHandle()
    
        if err := validateID(nid, eid); err != nil {
            return err
    Severity: Major
    Found in libnetwork/drivers/overlay/ov_endpoint.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status