From 9e3b7322a0ed7530a9de50b28acd258128d23b00 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Fri, 10 Nov 2023 18:05:22 +0530 Subject: [PATCH] Address linter error --- pkg/testing/tools/fleettools/fleet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/testing/tools/fleettools/fleet.go b/pkg/testing/tools/fleettools/fleet.go index 8d4a7f8f1ac..77c64069e41 100644 --- a/pkg/testing/tools/fleettools/fleet.go +++ b/pkg/testing/tools/fleettools/fleet.go @@ -26,7 +26,7 @@ func GetAgentByPolicyIDAndHostnameFromList(client *kibana.Client, policyID, host agentHostname := item.LocalMetadata.Host.Hostname agentPolicyID := item.PolicyID - if strings.ToLower(agentHostname) == strings.ToLower(hostname) && agentPolicyID == policyID { + if strings.EqualFold(agentHostname, hostname) && agentPolicyID == policyID { hostnameAgents = append(hostnameAgents, &listAgentsResp.Items[i]) } }