chore: Use var everywhere (#2294)

This commit is contained in:
Kamron Batman 2025-12-27 16:47:28 -08:00 committed by GitHub
parent 0b34cc4417
commit ebaf104935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
267 changed files with 873 additions and 873 deletions

View file

@ -67,15 +67,15 @@ public static class NetworkCompression
return 0;
}
int bitCount = 0;
int bitValue = 0;
var bitCount = 0;
var bitValue = 0;
int inputIdx = 0;
int outputIdx = 0;
var inputIdx = 0;
var outputIdx = 0;
while (inputIdx < input.Length)
{
int i = input[inputIdx++] << 1;
var i = input[inputIdx++] << 1;
bitCount += _huffmanTable[i];
bitValue = (bitValue << _huffmanTable[i]) | _huffmanTable[i + 1];