From be9579418f8d31d9701131ba25caf22f14d42a1a Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 5 Apr 2021 21:16:18 -0700 Subject: [PATCH] Refactor to use has_external_proc instead of a manual loop No functional change here. --- src/proc.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/proc.cpp b/src/proc.cpp index 855490bed..d366234ce 100644 --- a/src/proc.cpp +++ b/src/proc.cpp @@ -133,12 +133,7 @@ bool job_t::should_report_process_exits() const { } // Return whether we have an external process. - for (const auto &p : this->processes) { - if (p->type == process_type_t::external) { - return true; - } - } - return false; + return this->has_external_proc(); } bool job_t::job_chain_is_fully_constructed() const { return group->is_root_constructed(); }