diff --git a/Userland/Shell/AST.cpp b/Userland/Shell/AST.cpp index 78a40cc31cee7b..e8fc60246b23cd 100644 --- a/Userland/Shell/AST.cpp +++ b/Userland/Shell/AST.cpp @@ -1775,7 +1775,7 @@ RefPtr IfCond::run(RefPtr shell) { auto cond = m_condition->run(shell)->resolve_without_cast(shell); // The condition could be a builtin, in which case it has already run and exited. - if (cond && cond->is_job()) { + if (cond->is_job()) { auto cond_job_value = static_cast(cond.ptr()); auto cond_job = cond_job_value->job();