Skip to content

Remove assignments from assertThrows() lambdas. A large percentage of remaining usages of the try/fail pattern assign the result of the statement to a variable, only to never use it (the assignment never happens because the statement throws).#5847

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_928527984
Jun 8, 2026

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Remove assignments from assertThrows() lambdas. A large percentage of remaining usages of the try/fail pattern assign the result of the statement to a variable, only to never use it (the assignment never happens because the statement throws).

…of remaining usages of the try/fail pattern assign the result of the statement to a variable, only to never use it (the assignment never happens because the statement throws).

PiperOrigin-RevId: 928568034
@copybara-service copybara-service Bot merged commit da1f32b into master Jun 8, 2026
@copybara-service copybara-service Bot deleted the test_928527984 branch June 8, 2026 15:06
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.

1 participant