mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-08 10:32:54 +00:00
chore(lint): enable no-promise-executor-return
This commit is contained in:
@@ -92,7 +92,10 @@ const isProcessAlive = (pid, signalProcess) => {
|
||||
return true;
|
||||
};
|
||||
|
||||
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
||||
const sleep = (ms) =>
|
||||
new Promise((resolve) => {
|
||||
setTimeout(resolve, ms);
|
||||
});
|
||||
|
||||
const createWatchLockKey = (cwd, args) =>
|
||||
createHash("sha256").update(cwd).update("\0").update(args.join("\0")).digest("hex").slice(0, 12);
|
||||
|
||||
Reference in New Issue
Block a user