Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: third_party/zlib/google/zip_reader.cc

Issue 614893004: Refactor AppendToFile and WriteFileDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/test/simulator.cc ('k') | ui/base/resource/data_pack_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 80b60b3166c629ef3700f226a8c8f4be97089bad..339eb1141c7b4e2103e60324b3ff150b0b7bda91 100644
--- a/third_party/zlib/google/zip_reader.cc
+++ b/third_party/zlib/google/zip_reader.cc
@@ -331,8 +331,7 @@ bool ZipReader::ExtractCurrentEntryToFd(const int fd) {
break;
} else if (num_bytes_read > 0) {
// Some data is read. Write it to the output file descriptor.
- if (num_bytes_read !=
- base::WriteFileDescriptor(fd, buf, num_bytes_read)) {
+ if (!base::WriteFileDescriptor(fd, buf, num_bytes_read)) {
success = false;
break;
}
« no previous file with comments | « media/cast/test/simulator.cc ('k') | ui/base/resource/data_pack_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698