Type error fix

This commit is contained in:
Dragory 2020-12-13 22:11:16 +02:00
parent 864b57aac1
commit ba4be8cbf5
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -17,7 +17,7 @@ export class Queue {
const promise = new Promise(resolve => { const promise = new Promise(resolve => {
this.queue.push(async () => { this.queue.push(async () => {
await fn(); await fn();
resolve(); resolve(undefined);
}); });
if (!this.running) this.next(); if (!this.running) this.next();