mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
chore: enable noUncheckedIndexAccess (#7931)
This commit is contained in:
@@ -134,7 +134,7 @@ export class VoiceReceiver {
|
||||
const headerExtensionLength = packet.readUInt16BE(2);
|
||||
let offset = 4;
|
||||
for (let i = 0; i < headerExtensionLength; i++) {
|
||||
const byte = packet[offset];
|
||||
const byte = packet[offset]!;
|
||||
offset++;
|
||||
if (byte === 0) continue;
|
||||
offset += 1 + (byte >> 4);
|
||||
|
||||
Reference in New Issue
Block a user