Use return value to report error instead of abort()
CHECK_* macros will crash the program if condition is false. Since
BlockExtentWriter mostly runs on device, crashing is not a good
strategy.
Test: th
Bug: 216426344
Change-Id: Ib940d18e4a3624b90cd371e17e5ec0fdae6cbd5d
diff --git a/payload_consumer/block_extent_writer.h b/payload_consumer/block_extent_writer.h
index f9c7b15..902e3e1 100644
--- a/payload_consumer/block_extent_writer.h
+++ b/payload_consumer/block_extent_writer.h
@@ -29,7 +29,7 @@
class BlockExtentWriter : public chromeos_update_engine::ExtentWriter {
public:
BlockExtentWriter() = default;
- ~BlockExtentWriter();
+ ~BlockExtentWriter() = default;
// Returns true on success.
bool Init(const google::protobuf::RepeatedPtrField<Extent>& extents,
uint32_t block_size) override;