mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-01 07:38:46 +00:00
Refactor to use has_external_proc instead of a manual loop
No functional change here.
This commit is contained in:
parent
e299f89db3
commit
be9579418f
1 changed files with 1 additions and 6 deletions
|
@ -133,12 +133,7 @@ bool job_t::should_report_process_exits() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return whether we have an external process.
|
// Return whether we have an external process.
|
||||||
for (const auto &p : this->processes) {
|
return this->has_external_proc();
|
||||||
if (p->type == process_type_t::external) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool job_t::job_chain_is_fully_constructed() const { return group->is_root_constructed(); }
|
bool job_t::job_chain_is_fully_constructed() const { return group->is_root_constructed(); }
|
||||||
|
|
Loading…
Reference in a new issue