From 72d6a30e089069cacaa5ae4134ceaa93493d87a2 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 4 Apr 2023 09:15:49 -0400 Subject: [PATCH] LibCompress: Remove a few no-op continue statements in Deflate Alternatively, we could remove the else after the continue, but all branches here should be equally prominent, so this seems a bit nicer. No behavior change. --- Userland/Libraries/LibCompress/Deflate.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Userland/Libraries/LibCompress/Deflate.cpp b/Userland/Libraries/LibCompress/Deflate.cpp index 03f6e5f7d0..3433dac6de 100644 --- a/Userland/Libraries/LibCompress/Deflate.cpp +++ b/Userland/Libraries/LibCompress/Deflate.cpp @@ -437,17 +437,14 @@ ErrorOr DeflateDecompressor::decode_codes(CanonicalCode& literal_code, Opt if (symbol < deflate_special_code_length_copy) { code_lengths.append(static_cast(symbol)); - continue; } else if (symbol == deflate_special_code_length_zeros) { auto nrepeat = 3 + TRY(m_input_stream->read_bits(3)); for (size_t j = 0; j < nrepeat; ++j) code_lengths.append(0); - continue; } else if (symbol == deflate_special_code_length_long_zeros) { auto nrepeat = 11 + TRY(m_input_stream->read_bits(7)); for (size_t j = 0; j < nrepeat; ++j) code_lengths.append(0); - continue; } else { VERIFY(symbol == deflate_special_code_length_copy);