mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 19:32:55 +00:00
chore(lint): enable no-promise-executor-return
This commit is contained in:
@@ -56,7 +56,9 @@ describe("write-cli-startup-metadata", () => {
|
||||
const result = await __testing.mapWithConcurrency([1, 2, 3, 4, 5], 2, async (value) => {
|
||||
active += 1;
|
||||
peakActive = Math.max(peakActive, active);
|
||||
await new Promise((resolve) => setTimeout(resolve, 1));
|
||||
await new Promise((resolve) => {
|
||||
setTimeout(resolve, 1);
|
||||
});
|
||||
active -= 1;
|
||||
return `rendered-${value}`;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user