Shell: Make run_command() return a NonnullRefPtrVector<Job>

This never returns null Job pointers.
This commit is contained in:
Andreas Kling
2020-08-06 13:44:30 +02:00
parent 3055f73d48
commit bf2cd9374c
4 changed files with 7 additions and 7 deletions

View File

@@ -909,7 +909,7 @@ RefPtr<Value> Execute::run(RefPtr<Shell> shell)
try_read();
};
for (auto job : shell->run_commands(commands)) {
for (auto& job : shell->run_commands(commands)) {
shell->block_on_job(job);
}