Skip to content

Commit

Permalink
Address linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Nov 14, 2023
1 parent ceb5c1b commit 9e3b732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/testing/tools/fleettools/fleet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
}
Expand Down

0 comments on commit 9e3b732

Please sign in to comment.