chore: remove usage of the prefer-global rules (#11279)

This commit is contained in:
Denis-Adrian Cristea
2025-12-10 16:05:29 +02:00
committed by GitHub
parent 548d75258b
commit 9bf1f739e0
43 changed files with 64 additions and 66 deletions

View File

@@ -1,3 +1,4 @@
import { Buffer } from 'node:buffer';
import { test, expect, vitest } from 'vitest';
import { methods, secretboxLoadPromise } from '../src/util/Secretbox';

View File

@@ -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);