diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-10-01 16:01:47 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-01 16:38:35 +0200 |
| commit | cc80db955d0551c2456692da6176530dd27e08ed (patch) | |
| tree | 52eb201e3fb5af9168db095fbd5fcebaf2961d9d /executor/executor.cc | |
| parent | 1d849ab4d892af13a249f75628790b47e42b7c74 (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.cc | 3 |
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); |
