code cleanup: omit comparison to bool constant

This commit is contained in:
lojies
2022-08-17 14:40:09 +08:00
parent f5956716e3
commit 89fdd8858b

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
}