fix: clean up tool search lint · openclaw/openclaw@15b26be
steipete
·
2026-05-10
·
via Recent Commits to openclaw:main
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -357,7 +357,7 @@ describe("Tool Search", () => {
|
357 | 357 | agentId: "agent-main", |
358 | 358 | sessionId: "session-hooks-abort", |
359 | 359 | sessionKey: "agent:main:main", |
360 | | -}) as AnyAgentTool; |
| 360 | +}); |
361 | 361 | const abortWrapped = wrapToolWithAbortSignal(hooked, new AbortController().signal); |
362 | 362 | |
363 | 363 | applyToolSearchCatalog({ |
|
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|
@@ -385,7 +385,7 @@ function isToolSearchCodeModeSupported(): boolean {
|
385 | 385 | if (toolSearchCodeModeSupportedForTest !== undefined) { |
386 | 386 | return toolSearchCodeModeSupportedForTest; |
387 | 387 | } |
388 | | -return process.allowedNodeEnvironmentFlags?.has("--permission") === true; |
| 388 | +return process.allowedNodeEnvironmentFlags.has("--permission"); |
389 | 389 | } |
390 | 390 | |
391 | 391 | export function resolveToolSearchConfig(config?: OpenClawConfig): ToolSearchConfig { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。