Skip to content

Commit

Permalink
fix golint
Browse files Browse the repository at this point in the history
  • Loading branch information
bobz965 committed Oct 23, 2023
1 parent 20fcbdf commit b755a05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/daemon/ovs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -1482,9 +1482,9 @@ func linkExists(name string) (bool, error) {
_, err := netlink.LinkByName(name)
if err == nil {
return true, nil
} else if _, ok := err.(netlink.LinkNotFoundError); ok {
}
if _, ok := err.(netlink.LinkNotFoundError); ok {
return false, nil
} else {
return false, err
}
return false, err
}

0 comments on commit b755a05

Please sign in to comment.