fix(lint): resolve oxlint errors · openclaw/openclaw@6f7c89c
amittell
·
2026-04-30
·
via Recent Commits to openclaw:main
File tree
extensions/memory-lancedb
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2213,7 +2213,6 @@ describe("memory plugin e2e", () => {
|
2213 | 2213 | |
2214 | 2214 | try { |
2215 | 2215 | const { default: memoryPlugin } = await import("./index.js"); |
2216 | | -// oxlint-disable-next-line typescript/no-explicit-any |
2217 | 2216 | const registeredTools: any[] = []; |
2218 | 2217 | const mockApi = { |
2219 | 2218 | id: "memory-lancedb", |
@@ -2228,7 +2227,6 @@ describe("memory plugin e2e", () => {
|
2228 | 2227 | }, |
2229 | 2228 | runtime: {}, |
2230 | 2229 | logger: { info: vi.fn(), warn: vi.fn(), error: vi.fn(), debug: vi.fn() }, |
2231 | | -// oxlint-disable-next-line typescript/no-explicit-any |
2232 | 2230 | registerTool: (tool: any, opts: any) => { |
2233 | 2231 | registeredTools.push({ tool, opts }); |
2234 | 2232 | }, |
@@ -2238,7 +2236,6 @@ describe("memory plugin e2e", () => {
|
2238 | 2236 | resolvePath: (p: string) => p, |
2239 | 2237 | }; |
2240 | 2238 | |
2241 | | -// oxlint-disable-next-line typescript/no-explicit-any |
2242 | 2239 | memoryPlugin.register(mockApi as any); |
2243 | 2240 | const forgetTool = registeredTools.find((t) => t.opts?.name === "memory_forget")?.tool; |
2244 | 2241 | expect(forgetTool).toBeDefined(); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。