Index: third_party/zlib/google/zip_reader.cc |
diff --git a/third_party/zlib/google/zip_reader.cc b/third_party/zlib/google/zip_reader.cc |
index fdeb1259b3a0f4d9911c2300c98223a3e0c70ca8..ff5a39514af113d28f5266d2c119d51a4d386328 100644 |
--- a/third_party/zlib/google/zip_reader.cc |
+++ b/third_party/zlib/google/zip_reader.cc |
@@ -514,11 +514,9 @@ FileWriterDelegate::FileWriterDelegate(base::File* file) |
} |
FileWriterDelegate::~FileWriterDelegate() { |
-#if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON) |
- const bool success = |
-#endif |
- file_->SetLength(file_length_); |
- DPLOG_IF(ERROR, !success) << "Failed updating length of written file"; |
+ if (!file_->SetLength(file_length_)) { |
+ DPLOG(ERROR) << "Failed updating length of written file"; |
+ } |
} |
bool FileWriterDelegate::PrepareOutput() { |