mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: remove usage of the prefer-global rules (#11279)
This commit is contained in:
committed by
GitHub
parent
548d75258b
commit
9bf1f739e0
@@ -1,3 +1,4 @@
|
||||
import { Buffer } from 'node:buffer';
|
||||
import { test, expect, vitest } from 'vitest';
|
||||
import { methods, secretboxLoadPromise } from '../src/util/Secretbox';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Buffer } from 'node:buffer';
|
||||
import { nextTick } from 'node:process';
|
||||
import process from 'node:process';
|
||||
import { Readable, type ReadableOptions } from 'node:stream';
|
||||
import { SILENCE_FRAME } from '../audio/AudioPlayer';
|
||||
|
||||
@@ -79,7 +79,7 @@ export class AudioReceiveStream extends Readable {
|
||||
|
||||
if (buffer === null) {
|
||||
// null marks EOF for stream
|
||||
nextTick(() => this.destroy());
|
||||
process.nextTick(() => this.destroy());
|
||||
}
|
||||
|
||||
return super.push(buffer);
|
||||
|
||||
Reference in New Issue
Block a user