mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Remove a redundant conditional in tor_zstd_compress_process
Part of #22502
This commit is contained in:
parent
7605bd528e
commit
617e1da636
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user