summaryrefslogtreecommitdiffhomepage
path: root/test/util/posix_error.h
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2019-01-23 18:23:39 -0800
committerShentubot <shentubot@google.com>2019-01-23 18:24:48 -0800
commit74f5100a92854bb244f560847cd8f459a8a06688 (patch)
tree99b73597c811ff2603593ef5c8e1a394be51997b /test/util/posix_error.h
parentaf89fb49af1c9112753c718eb8538bcd9d2a6c6c (diff)
Fix cases of missing braces on if
PiperOrigin-RevId: 230641540 Change-Id: Icccc3cdeec191138940f0ecea0a29798359d2b1f
Diffstat (limited to 'test/util/posix_error.h')
-rw-r--r--test/util/posix_error.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/util/posix_error.h b/test/util/posix_error.h
index 7fafe01b5..c3306b015 100644
--- a/test/util/posix_error.h
+++ b/test/util/posix_error.h
@@ -426,7 +426,9 @@ IsPosixErrorOkAndHolds(InnerMatcher&& inner_matcher) {
#define RETURN_IF_ERRNO(s) \
do { \
- if (!s.ok()) return s; \
+ if (!s.ok()) { \
+ return s; \
+ } \
} while (false);
#define ASSERT_NO_ERRNO_AND_VALUE(expr) \