From 89fdd8858b89c48961b06db909e04d56eed36829 Mon Sep 17 00:00:00 2001 From: lojies Date: Wed, 17 Aug 2022 14:40:09 +0800 Subject: [PATCH] code cleanup: omit comparison to bool constant --- pkg/util/netsh/netsh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/netsh/netsh.go b/pkg/util/netsh/netsh.go index 3f3c03fb0513e..2099ac7acdf94 100644 --- a/pkg/util/netsh/netsh.go +++ b/pkg/util/netsh/netsh.go @@ -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 }