Skip to content

Commit

Permalink
fix wording
Browse files Browse the repository at this point in the history
  • Loading branch information
prezha committed Feb 15, 2021
1 parent bf96c43 commit a785552
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/drivers/kvm/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (d *Driver) deleteNetwork() error {
log.Warnf("Network %s does not exist. Skipping deletion", d.PrivateNetwork)
return nil
}
return errors.Wrapf(err, "failed looking for network %s", d.PrivateNetwork)
return errors.Wrapf(err, "failed looking up network %s", d.PrivateNetwork)
}
defer func() { _ = network.Free() }()
log.Debugf("Network %s exists", d.PrivateNetwork)
Expand All @@ -221,8 +221,7 @@ func (d *Driver) deleteNetwork() error {
}
if active {
log.Debugf("Destroying active network %s", d.PrivateNetwork)
err := network.Destroy()
if err != nil {
if err := network.Destroy(); err != nil {
return err
}
}
Expand Down

0 comments on commit a785552

Please sign in to comment.