add makeSystemError*() helper functions
[folly.git] / folly / FileUtil.h
index 92598093a836a0df1f5535f2809765722da10352..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