mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-12 06:02:59 +00:00
chore(lint): enable no-promise-executor-return
This commit is contained in:
@@ -33,7 +33,9 @@ describe("source file scan cache", () => {
|
||||
const readFile = async (filePath: string) => {
|
||||
activeReads += 1;
|
||||
maxActiveReads = Math.max(maxActiveReads, activeReads);
|
||||
await new Promise((resolve) => setTimeout(resolve, 10));
|
||||
await new Promise((resolve) => {
|
||||
setTimeout(resolve, 10);
|
||||
});
|
||||
activeReads -= 1;
|
||||
return `content:${path.basename(filePath)}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user