Skip to content

Commit

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

auto const rc = lzma_code(&m_compression_stream, action);
Expand Down

0 comments on commit 905367d

Please sign in to comment.