mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 17:18:25 +00:00
chore: Enable some "perf" lint rules.
This commit is contained in:
@@ -310,8 +310,8 @@ describe("createTelegramBot", () => {
|
||||
{ command: "custom_backup", description: "Git backup" },
|
||||
{ command: "custom_generate", description: "Create an image" },
|
||||
]);
|
||||
const reserved = listNativeCommandSpecs().map((command) => command.name);
|
||||
expect(registered.some((command) => reserved.includes(command.command))).toBe(false);
|
||||
const reserved = new Set(listNativeCommandSpecs().map((command) => command.name));
|
||||
expect(registered.some((command) => reserved.has(command.command))).toBe(false);
|
||||
});
|
||||
|
||||
it("uses wrapped fetch when global fetch is available", () => {
|
||||
|
||||
Reference in New Issue
Block a user