1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #2320 from fcrisciani/fix-build

Fix gosimple
This commit is contained in:
Flavio Crisciani 2019-01-03 16:45:27 -08:00 committed by GitHub
commit fefb622447

View file

@ -181,11 +181,9 @@ func (c *controller) defaultGwNetwork() (Network, error) {
defer func() { <-procGwNetwork }() defer func() { <-procGwNetwork }()
n, err := c.NetworkByName(libnGWNetwork) n, err := c.NetworkByName(libnGWNetwork)
if err != nil {
if _, ok := err.(types.NotFoundError); ok { if _, ok := err.(types.NotFoundError); ok {
n, err = c.createGWNetwork() n, err = c.createGWNetwork()
} }
}
return n, err return n, err
} }