aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-10-01 16:01:47 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-10-01 16:38:35 +0200
commitcc80db955d0551c2456692da6176530dd27e08ed (patch)
tree52eb201e3fb5af9168db095fbd5fcebaf2961d9d /executor/executor.cc
parent1d849ab4d892af13a249f75628790b47e42b7c74 (diff)
executor: check for single-line compound statements
Historically the code base does not use single-line compound statements ({} around single-line blocks). But there are few precedents creeped into already. Add a check to keep the code base consistent.
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 6e3214925..25e3be69d 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -1184,9 +1184,8 @@ void execute_call(thread_t* th)
}
th->fault_injected = false;
- if (th->call_props.fail_nth > 0) {
+ if (th->call_props.fail_nth > 0)
th->fault_injected = fault_injected(fail_fd);
- }
debug("#%d [%llums] <- %s=0x%llx errno=%d ",
th->id, current_time_ms() - start_time_ms, call->name, (uint64)th->res, th->reserrno);