Merge pull request #111883 from lojies/codecleanupfornetsh

code cleanup: omit comparison to bool constant
This commit is contained in:
Kubernetes Prow Robot 2022-08-23 20:08:30 -07:00 committed by GitHub
commit 29d87d6f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}