]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove a redundant conditional in tor_zstd_compress_process
authorteor <teor2345@gmail.com>
Thu, 15 Jun 2017 23:46:46 +0000 (09:46 +1000)
committerteor <teor2345@gmail.com>
Thu, 15 Jun 2017 23:46:46 +0000 (09:46 +1000)
Part of #22502

src/common/compress_zstd.c

index 9143615d4da12580e329d24c51417febfa8c8866..11fcf8664456a0f8c3d21e28943e96e43c21743b 100644 (file)
@@ -321,7 +321,7 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state,
   if (!finish) {
     // We're not done with the input, so no need to flush.
     return TOR_COMPRESS_OK;
-  } else if (state->compress && finish) {
+  } else if (state->compress) {
     retval = ZSTD_endStream(state->u.compress_stream, &output);
 
     *out = (char *)output.dst + output.pos;