Skip to content

refactor: remove redundant raise before reraise()#588

Merged
mergify[bot] merged 1 commit intomainfrom
devs/jd/fix/reraise-noreturn/I8ef31ce3d62db7d56adb0053855a1131b54f1fa5
Feb 19, 2026
Merged

refactor: remove redundant raise before reraise()#588
mergify[bot] merged 1 commit intomainfrom
devs/jd/fix/reraise-noreturn/I8ef31ce3d62db7d56adb0053855a1131b54f1fa5

Conversation

@jd
Copy link
Copy Markdown
Owner

@jd jd commented Feb 19, 2026

reraise() is typed as NoReturn and always raises internally.
The outer raise keyword was dead code that could never execute,
and was misleading since it suggested reraise() returns an exception
rather than raising one directly.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

reraise() is typed as NoReturn and always raises internally.
The outer `raise` keyword was dead code that could never execute,
and was misleading since it suggested reraise() returns an exception
rather than raising one directly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change-Id: I8ef31ce3d62db7d56adb0053855a1131b54f1fa5
@jd jd marked this pull request as ready for review February 19, 2026 09:48
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Feb 19, 2026

Merge Queue Status

Rule: default


This pull request spent 1 minute 16 seconds in the queue, including 13 seconds running CI.

Required conditions to merge

@mergify mergify Bot added the queued label Feb 19, 2026
mergify Bot added a commit that referenced this pull request Feb 19, 2026
@mergify mergify Bot merged commit d49d075 into main Feb 19, 2026
9 checks passed
@mergify mergify Bot deleted the devs/jd/fix/reraise-noreturn/I8ef31ce3d62db7d56adb0053855a1131b54f1fa5 branch February 19, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant