From cc80db955d0551c2456692da6176530dd27e08ed Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 1 Oct 2021 16:01:47 +0200 Subject: 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. --- executor/executor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'executor/executor.cc') 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); -- cgit mrf-deployment