diff --git a/Sources/BZip2/BZip2.swift b/Sources/BZip2/BZip2.swift index 215ebda4..a8b7e556 100644 --- a/Sources/BZip2/BZip2.swift +++ b/Sources/BZip2/BZip2.swift @@ -173,9 +173,7 @@ public class BZip2: DecompressionAlgorithm { length -= (bitReader.bit().toInt() * 2 - 1) bitsLeft -= 1 } - if length > 0 { - codeLengths.append(CodeLength(symbol: i, codeLength: length)) - } + codeLengths.append(CodeLength(symbol: i, codeLength: length)) } let codes = Code.huffmanCodes(from: codeLengths) let table = DecodingTree(codes, bitReader)