Tests: Remove a duplicate branch from tests/tests.h.

The duplication was introduced about eleven years ago and
should have been cleaned up back then already.

This was caught by -Wduplicated-branches.
This commit is contained in:
Lasse Collin 2019-06-24 00:57:23 +03:00
parent 5c4fb60e8d
commit 65a42741e2
1 changed files with 2 additions and 7 deletions

View File

@ -94,13 +94,8 @@ coder_loop(lzma_stream *strm, uint8_t *in, size_t in_size,
if (ret != expected_ret) if (ret != expected_ret)
error = true; error = true;
if (expected_ret == LZMA_STREAM_END) {
if (strm->total_in != in_size || strm->total_out != out_size) if (strm->total_in != in_size || strm->total_out != out_size)
error = true; error = true;
} else {
if (strm->total_in != in_size || strm->total_out != out_size)
error = true;
}
return error; return error;
} }