mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 21:11:15 -03:00
[clang-tidy] Simplify boolean expressions
Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
ridiculousfish
parent
4087b2ee15
commit
7d1cc992e5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user