From 72e7fd34dc143f2ea0d5f134834e57a41b29ab77 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Sat, 9 Dec 2017 15:29:26 -0800 Subject: [cleanup] Always use braces with if (#691) --- src/binary-reader-logging.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/binary-reader-logging.cc') 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, -- cgit v1.2.3