chore: enable noUncheckedIndexAccess (#7931)

This commit is contained in:
DD
2022-05-18 20:56:42 +03:00
committed by GitHub
parent 993eb74475
commit e2f5a4a494
6 changed files with 7 additions and 6 deletions

View File

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