libnetwork: Endpoint.InterfaceName: remove redundant nil check
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
a49b71b481
commit
1dcb11f81d
1 changed files with 1 additions and 6 deletions
|
@ -272,12 +272,7 @@ func (epi *EndpointInterface) SetNames(srcName string, dstPrefix string) error {
|
|||
func (ep *Endpoint) InterfaceName() driverapi.InterfaceNameInfo {
|
||||
ep.mu.Lock()
|
||||
defer ep.mu.Unlock()
|
||||
|
||||
if ep.iface != nil {
|
||||
return ep.iface
|
||||
}
|
||||
|
||||
return nil
|
||||
return ep.iface
|
||||
}
|
||||
|
||||
// AddStaticRoute adds a route to the sandbox.
|
||||
|
|
Loading…
Reference in a new issue