fuck you linter

This commit is contained in:
DjDeveloperr 2021-01-21 18:15:31 +05:30
parent cc75a34d56
commit 77b08747ab

View file

@ -142,7 +142,8 @@ export class Collector extends HarmonyEventEmitter<CollectorEvents> {
}
/** Returns a Promise resolved when Collector ends or a timeout occurs */
async wait(timeout: number = this.timeout ?? 0): Promise<Collector> {
async wait(timeout?: number): Promise<Collector> {
if (timeout === undefined) timeout = this.timeout ?? 0
return await new Promise((resolve, reject) => {
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
if (!timeout)