Skip to content

Remove impossible condition#5119

Open
drebelsky wants to merge 1 commit intostellar:masterfrom
drebelsky:remove-impossible-cond
Open

Remove impossible condition#5119
drebelsky wants to merge 1 commit intostellar:masterfrom
drebelsky:remove-impossible-cond

Conversation

@drebelsky
Copy link
Contributor

Since prev is a shared_ptr that we don't update and we already know is non-null, this condition is impossible to hit.

Copilot AI review requested due to automatic review settings February 2, 2026 18:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes an unnecessary null check for a shared_ptr that is guaranteed to be non-null due to prior validation and capture semantics.

Changes:

  • Removed an impossible null check for prev in a lambda capture within DownloadApplyTxsWork::yieldMoreWork()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants