mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #111883 from lojies/codecleanupfornetsh
code cleanup: omit comparison to bool constant
This commit is contained in:
commit
29d87d6f14
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user