chore(lint): burn down remaining warnings to zero

This commit is contained in:
William Valentin
2026-02-15 23:14:21 -08:00
parent 49b752e8b0
commit 948d4ac6d8
67 changed files with 235 additions and 256 deletions
+6 -4
View File
@@ -288,11 +288,13 @@ export class ToolPolicy {
*/
getEffectiveProfile(context?: ToolPolicyContext): ToolProfile {
// Check agent override first, then provider, then global
if (context?.agent && this.config.agents[context.agent]?.profile) {
return this.config.agents[context.agent].profile!;
const agentProfile = context?.agent ? this.config.agents[context.agent]?.profile : undefined;
if (agentProfile) {
return agentProfile;
}
if (context?.provider && this.config.providers[context.provider]?.profile) {
return this.config.providers[context.provider].profile!;
const providerProfile = context?.provider ? this.config.providers[context.provider]?.profile : undefined;
if (providerProfile) {
return providerProfile;
}
return this.config.profile;
}