| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9a45ff5 commit c98cc67
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -448,6 +448,10 @@ class PushQueue { | |||
| 448 | 448 | // =========================================================================== | |
| 449 | 449 | ||
| 450 | 450 | #drain() { | |
| 451 | + if (this.#slots.length === 1) { | ||
| 452 | + return this.#slots.shift(); | ||
| 453 | + } | ||
| 454 | + | ||
| 451 | 455 | const result = []; | |
| 452 | 456 | for (let i = 0; i < this.#slots.length; i++) { | |
| 453 | 457 | const slot = this.#slots.get(i); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments