Skip to content

Remove impossible condition#5119

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

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
Contributor

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()

@drebelsky drebelsky mentioned this pull request Feb 23, 2026
@drebelsky
Copy link
Contributor Author

Since this is small, merging it into #5122.

@drebelsky drebelsky closed this Feb 23, 2026
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.

3 participants