Skip to content

Commit 15b26be

Browse files
committed
fix: clean up tool search lint
1 parent 1576853 commit 15b26be

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/agents/tool-search.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ describe("Tool Search", () => {
357357
agentId: "agent-main",
358358
sessionId: "session-hooks-abort",
359359
sessionKey: "agent:main:main",
360-
}) as AnyAgentTool;
360+
});
361361
const abortWrapped = wrapToolWithAbortSignal(hooked, new AbortController().signal);
362362

363363
applyToolSearchCatalog({

‎src/agents/tool-search.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ function isToolSearchCodeModeSupported(): boolean {
385385
if (toolSearchCodeModeSupportedForTest !== undefined) {
386386
return toolSearchCodeModeSupportedForTest;
387387
}
388-
return process.allowedNodeEnvironmentFlags?.has("--permission") === true;
388+
return process.allowedNodeEnvironmentFlags.has("--permission");
389389
}
390390

391391
export function resolveToolSearchConfig(config?: OpenClawConfig): ToolSearchConfig {

0 commit comments

Comments
 (0)