style: auto-fix ESLint issues (curly braces and formatting)
- Add curly braces to all if/else/for/while statements - Fix indentation and trailing spaces - Auto-fixed 372 linting errors using eslint --fix - Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
@@ -81,7 +81,7 @@ export class ToolRegistry {
|
||||
|
||||
/** Return tools filtered by the policy for a given context. */
|
||||
filteredList(context?: ToolPolicyContext): Tool[] {
|
||||
if (!this._policy) return this.list();
|
||||
if (!this._policy) {return this.list();}
|
||||
return this._policy.filterTools(this.list(), context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user