@ravshansbox/pi-next-issue 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/github.ts +1 -1
package/package.json
CHANGED
package/src/github.ts
CHANGED
|
@@ -273,6 +273,6 @@ export async function merge(
|
|
|
273
273
|
if (Date.now() >= deadline) {
|
|
274
274
|
return { merged: false, reason: 'the merge did not finish in time' };
|
|
275
275
|
}
|
|
276
|
-
await sleep(Math.min(POLL_MS, deadline - Date.now()), undefined, { signal });
|
|
276
|
+
await sleep(Math.max(0, Math.min(POLL_MS, deadline - Date.now())), undefined, { signal });
|
|
277
277
|
}
|
|
278
278
|
}
|