浏览代码

Remove a redundant conditional in tor_zstd_compress_process

Part of #22502
teor 8 年之前
父节点
当前提交
617e1da636
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/compress_zstd.c

+ 1 - 1
src/common/compress_zstd.c

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