Преглед изворни кода

Shell: Do not bail on signaled if condition

Fixes #5119
AnotherTest пре 4 година
родитељ
комит
37bfaf4e7c
1 измењених фајлова са 0 додато и 3 уклоњено
  1. 0 3
      Userland/Shell/AST.cpp

+ 0 - 3
Userland/Shell/AST.cpp

@@ -1619,9 +1619,6 @@ RefPtr<Value> IfCond::run(RefPtr<Shell> shell)
         auto cond_job = cond_job_value->job();
 
         shell->block_on_job(cond_job);
-
-        if (cond_job->signaled())
-            return create<ListValue>({}); // Exit early.
     }
     if (shell->last_return_code == 0) {
         if (m_true_branch)