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

Unified Diff: runtime/bin/directory_linux.cc

Issue 1800863002: Cleanup in //runtime/bin (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Windows fixes Created 4 years, 9 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
Index: runtime/bin/directory_linux.cc
diff --git a/runtime/bin/directory_linux.cc b/runtime/bin/directory_linux.cc
index 84301342b46433b193559a9b247b3333e2227892..bd12d6d245b75918108bca100b22ece59d1fc9dd 100644
--- a/runtime/bin/directory_linux.cc
+++ b/runtime/bin/directory_linux.cc
@@ -384,7 +384,7 @@ const char* Directory::Current() {
bool Directory::SetCurrent(const char* path) {
- return NO_RETRY_EXPECTED(chdir(path)) == 0;
+ return (NO_RETRY_EXPECTED(chdir(path)) == 0);
}
@@ -469,7 +469,7 @@ bool Directory::Rename(const char* path, const char* new_path) {
if (exists != EXISTS) {
return false;
}
- return NO_RETRY_EXPECTED(rename(path, new_path)) == 0;
+ return (NO_RETRY_EXPECTED(rename(path, new_path)) == 0);
}
} // namespace bin

Powered by Google App Engine
This is Rietveld 408576698