Skip to content

Commit b5a9ffe

Browse files
authored
refactor(completion): align helper naming
Agent-Logs-Url: https://github.com/elastic/cli/sessions/9e295931-2da1-4a2f-9ae8-43419f0cd8cb
1 parent fe4bd73 commit b5a9ffe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/completion/complete.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ async function loadCompletionCommandPolicy (): Promise<CommandPolicy | undefined
6969
const structural = StructuralConfigSchema.safeParse(raw)
7070
if (!structural.success) return undefined
7171

72-
const { current_context, contexts, commands: rawRootCommands, default_profile: rawDefaultProfileValue } = structural.data
72+
const { current_context, contexts, commands: rawRootCommands, default_profile: rawDefaultProfile } = structural.data
7373
const rawContext = contexts[current_context]
7474
if (rawContext == null) return undefined
7575

7676
let defaultProfile
77-
if (rawDefaultProfileValue != null) {
78-
const defaultProfileParsed = CommandPolicySchema.shape.profile.safeParse(rawDefaultProfileValue)
77+
if (rawDefaultProfile != null) {
78+
const defaultProfileParsed = CommandPolicySchema.shape.profile.safeParse(rawDefaultProfile)
7979
if (!defaultProfileParsed.success) return undefined
8080
defaultProfile = defaultProfileParsed.data
8181
}

0 commit comments

Comments
 (0)