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

Unified Diff: runtime/bin/directory_fuchsia.cc

Issue 3005883002: [dart:io] Remove double-close from recursive directory delete (Closed)
Patch Set: Created 3 years, 4 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 | « runtime/bin/directory_android.cc ('k') | runtime/bin/directory_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory_fuchsia.cc
diff --git a/runtime/bin/directory_fuchsia.cc b/runtime/bin/directory_fuchsia.cc
index c9a7c4e9438373df98ab338bf51bb7530411b036..658409e20d35ae36a18c86bf4e9cd2d443247c78 100644
--- a/runtime/bin/directory_fuchsia.cc
+++ b/runtime/bin/directory_fuchsia.cc
@@ -413,7 +413,6 @@ static bool DeleteRecursively(int dirfd, PathBuffer* path) {
}
// End of directory.
int status = NO_RETRY_EXPECTED(closedir(dir_pointer));
- FDUtils::SaveErrorAndClose(fd);
if (status != 0) {
return false;
}
@@ -474,7 +473,6 @@ static bool DeleteRecursively(int dirfd, PathBuffer* path) {
ASSERT(errno != 0);
int err = errno;
VOID_NO_RETRY_EXPECTED(closedir(dir_pointer));
- FDUtils::SaveErrorAndClose(fd);
errno = err;
return false;
}
« no previous file with comments | « runtime/bin/directory_android.cc ('k') | runtime/bin/directory_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698