From f7ece637aef56151c14d7dc82547480c2fe1586a Mon Sep 17 00:00:00 2001 From: paulyufan2 Date: Thu, 22 Aug 2024 17:22:08 -0400 Subject: [PATCH] fix linter issue --- cni/network/network.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cni/network/network.go b/cni/network/network.go index aea5f131439..4b484a541bf 100644 --- a/cni/network/network.go +++ b/cni/network/network.go @@ -250,7 +250,6 @@ func (plugin *NetPlugin) findMasterInterfaceBySubnet(nwCfg *cni.NetworkConfig, s // Otherwise, pick the first interface with an IP address in the given subnet. subnetPrefixString := subnetPrefix.String() interfaces, err := plugin.netClient.GetNetworkInterfaces() - if err != nil { logger.Error("failed to get interfaces", zap.Error(err)) return ""