inlining deleteNetwork into if statement

pull/3148/head
Marcus Heese 2018-09-24 14:04:01 -07:00
parent 8d75f3b865
commit 4eb2cdb120
No known key found for this signature in database
GPG Key ID: D4FDE2903B680FF9
1 changed files with 1 additions and 2 deletions

View File

@ -369,8 +369,7 @@ func (d *Driver) Remove() error {
// Tear down network if it exists and is not in use by another minikube instance
log.Debug("Trying to delete the networks (if possible)")
err = d.deleteNetwork()
if err != nil {
if err := d.deleteNetwork(); err != nil {
log.Warnf("Deleting of networks failed: %s", err.Error())
} else {
log.Info("Successfully deleted networks")