mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
chore: improve linting (#7244)
This commit is contained in:
@@ -56,8 +56,11 @@ export function demuxProbe(
|
||||
let resolved: StreamType | undefined = undefined;
|
||||
|
||||
const finish = (type: StreamType) => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||
stream.off('data', onData);
|
||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||
stream.off('close', onClose);
|
||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||
stream.off('end', onClose);
|
||||
stream.pause();
|
||||
resolved = type;
|
||||
|
||||
Reference in New Issue
Block a user