Skip to content

Commit

Permalink
🐛 handle null max effort correctly (#337)
Browse files Browse the repository at this point in the history
This is a follow-up to #331 because I messed up and forgot to commit
this change 😢 .

Signed-off-by: David Zager <[email protected]>
  • Loading branch information
djzager authored Feb 3, 2025
1 parent 8449216 commit 39882a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vscode/src/utilities/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export function getConfigSolutionMaxEffort(): number | undefined {
};

const effortSetting = getConfigValue<string>("kai.getSolutionMaxEffort");
return effortLevels[effortSetting as keyof typeof effortLevels] ?? 0;
return effortLevels[effortSetting as keyof typeof effortLevels];
}

export function getConfigMaxLLMQueries(): number | undefined {
Expand Down

0 comments on commit 39882a8

Please sign in to comment.