[clang-tidy] Simplify boolean expressions

Found with readability-simplify-boolean-expr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-11-25 16:51:28 -08:00
committed by ridiculousfish
parent 4087b2ee15
commit 7d1cc992e5
9 changed files with 9 additions and 19 deletions

View File

@@ -60,10 +60,7 @@ static bool any_jobs_finished(size_t jobs_len, const parser_t &parser) {
no_jobs_running = false;
}
}
if (no_jobs_running) {
return true;
}
return false;
return no_jobs_running;
}
static int wait_for_backgrounds(parser_t &parser, bool any_flag) {