From 6e30f4e8833b9f9bcf4eddb95a5f9393903ba572 Mon Sep 17 00:00:00 2001 From: Daniel Rebelsky <4641927+drebelsky@users.noreply.github.com> Date: Mon, 2 Feb 2026 10:20:58 -0800 Subject: [PATCH] Remove impossible condition --- src/catchup/DownloadApplyTxsWork.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/catchup/DownloadApplyTxsWork.cpp b/src/catchup/DownloadApplyTxsWork.cpp index ca13047e7c..0522868fe4 100644 --- a/src/catchup/DownloadApplyTxsWork.cpp +++ b/src/catchup/DownloadApplyTxsWork.cpp @@ -146,12 +146,6 @@ DownloadApplyTxsWork::yieldMoreWork() bool pqFellBehind = false; auto predicate = [prev, pqFellBehind, waitForPublish = mWaitForPublish, maybeWaitForMerges](Application& app) mutable { - if (!prev) - { - throw std::runtime_error("Download and apply txs: related Work " - "is destroyed unexpectedly"); - } - // First, ensure download work is finished if (prev->getState() != State::WORK_SUCCESS) {