From dd7fa71768a422e5487494c5260b9136c9bf773a Mon Sep 17 00:00:00 2001 From: Keith Nguyen Date: Mon, 13 Jun 2022 11:05:36 -0500 Subject: [PATCH] remove code smell --- cni/network/invoker_azure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cni/network/invoker_azure.go b/cni/network/invoker_azure.go index e378a11022..90acfa2a78 100644 --- a/cni/network/invoker_azure.go +++ b/cni/network/invoker_azure.go @@ -112,7 +112,7 @@ func (invoker *AzureIPAMInvoker) deleteIpamState() { return } - if !cniStateExists && ipamStateExists { + if ipamStateExists { log.Printf("[cni] Deleting IPAM state file") err = os.Remove(platform.CNIIpamStatePath) if err != nil {