add makeSystemError*() helper functions
[folly.git] / folly / FileUtil.h
index c27e249af4e2727d5a1c20b093ed1aee09c8393d..0913b23d2385510a86928ee2e347e0b3d767df0f 100644 (file)
@@ -131,7 +131,9 @@ bool readFile(
 
   // Obtain file size:
   struct stat buf;
-  if (fstat(fd, &buf) == -1) return false;
+  if (fstat(fd, &buf) == -1) {
+    return false;
+  }
   // Some files (notably under /proc and /sys on Linux) lie about
   // their size, so treat the size advertised by fstat under advise
   // but don't rely on it. In particular, if the size is zero, we
@@ -252,4 +254,4 @@ int writeFileAtomicNoThrow(
     int count,
     mode_t permissions = 0644);
 
-}  // namespaces
+} // namespace folly