diff options
author | Ben Smith <binjimin@gmail.com> | 2017-12-09 15:29:26 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-09 15:29:26 -0800 |
commit | 72e7fd34dc143f2ea0d5f134834e57a41b29ab77 (patch) | |
tree | 41a99ff8305952155106e5cde94f1e394c7ac4c7 /src/binary-reader-logging.cc | |
parent | a8306f4e1c2d995aab30514cac3219e449325469 (diff) | |
download | wabt-72e7fd34dc143f2ea0d5f134834e57a41b29ab77.tar.gz wabt-72e7fd34dc143f2ea0d5f134834e57a41b29ab77.tar.bz2 wabt-72e7fd34dc143f2ea0d5f134834e57a41b29ab77.zip |
[cleanup] Always use braces with if (#691)
Diffstat (limited to 'src/binary-reader-logging.cc')
-rw-r--r-- | src/binary-reader-logging.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/binary-reader-logging.cc b/src/binary-reader-logging.cc index a5e6b985..236a62cf 100644 --- a/src/binary-reader-logging.cc +++ b/src/binary-reader-logging.cc @@ -80,8 +80,9 @@ void BinaryReaderLogging::LogTypes(Index type_count, Type* types) { LOGF_NOINDENT("["); for (Index i = 0; i < type_count; ++i) { LOGF_NOINDENT("%s", GetTypeName(types[i])); - if (i != type_count - 1) + if (i != type_count - 1) { LOGF_NOINDENT(", "); + } } LOGF_NOINDENT("]"); } @@ -276,8 +277,9 @@ Result BinaryReaderLogging::OnBrTableExpr(Index num_targets, LOGF("OnBrTableExpr(num_targets: %" PRIindex ", depths: [", num_targets); for (Index i = 0; i < num_targets; ++i) { LOGF_NOINDENT("%" PRIindex, target_depths[i]); - if (i != num_targets - 1) + if (i != num_targets - 1) { LOGF_NOINDENT(", "); + } } LOGF_NOINDENT("], default: %" PRIindex ")\n", default_target_depth); return reader_->OnBrTableExpr(num_targets, target_depths, |