Skip to content

Commit

Permalink
code cleanup: omit comparison to bool constant
Browse files Browse the repository at this point in the history
  • Loading branch information
lojies committed Aug 17, 2022
1 parent f595671 commit 89fdd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/netsh/netsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (runner *runner) EnsureIPAddress(args []string, ip net.IP) (bool, error) {
ipToCheck := ip.String()

exists, _ := checkIPExists(ipToCheck, argsShowAddress, runner)
if exists == true {
if exists {
klog.V(4).InfoS("Not adding IP address, as it already exists", "IP", ipToCheck)
return true, nil
}
Expand Down

0 comments on commit 89fdd88

Please sign in to comment.