Skip to content

Commit

Permalink
Fix gosimple
Browse files Browse the repository at this point in the history
Signed-off-by: Flavio Crisciani <[email protected]>
  • Loading branch information
Flavio Crisciani committed Jan 3, 2019
1 parent 2bea082 commit fd6be31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions default_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,8 @@ func (c *controller) defaultGwNetwork() (Network, error) {
defer func() { <-procGwNetwork }()

n, err := c.NetworkByName(libnGWNetwork)
if err != nil {
if _, ok := err.(types.NotFoundError); ok {
n, err = c.createGWNetwork()
}
if _, ok := err.(types.NotFoundError); ok {
n, err = c.createGWNetwork()
}
return n, err
}
Expand Down

0 comments on commit fd6be31

Please sign in to comment.