Skip to content

Commit

Permalink
remove redundant initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcold committed Sep 21, 2023
1 parent 7e73abd commit fae61de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/public/hooks/use_agent_version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const useAgentVersion = (): string | undefined => {
try {
const res = await sendGetAgentsAvailableVersions();
const availableVersions = res?.data?.items;
let agentVersionToUse = kibanaVersion;
let agentVersionToUse;

if (
availableVersions &&
Expand Down

0 comments on commit fae61de

Please sign in to comment.