Skip to content

Commit

Permalink
Simplify else-if
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-hbrhbr committed Dec 2, 2024
1 parent 740bc1c commit e2be883
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ auto Compressor::run_lzma(lzma_action action) -> void {
m_compression_stream.next_in = nullptr;
break;
}
} else {
if (LZMA_FINISH == action) {
} else if (LZMA_FINISH == action) {
SPDLOG_ERROR("Tried to close LZMA compressor with unprocessed input data.");
throw OperationFailed(ErrorCode_Failure, __FILENAME__, __LINE__);
}
Expand Down

0 comments on commit e2be883

Please sign in to comment.