Skip to content

Clarify requirement marshal validation#9711

Merged
hsbt merged 1 commit into
ruby:masterfrom
nobu:clarify-requirement-validation
Jul 23, 2026
Merged

Clarify requirement marshal validation#9711
hsbt merged 1 commit into
ruby:masterfrom
nobu:clarify-requirement-validation

Conversation

@nobu

@nobu nobu commented Jul 22, 2026

Copy link
Copy Markdown
Member

What was the end-user or developer problem that led to this PR?

There was no end-user-facing bug.
The validation relied on an assignment expression being truthy, which made the intent unclear and could easily be mistaken for an accidental assignment.

What is your fix for the problem, implemented in this PR?

Separate the normalization assignment from the validation condition so that the intent of each operation is explicit.

Make sure the following tasks are checked

Stop using assignment as an always-true condition while preserving
legacy normalization of requirement operators. Make the validation
flow easier to follow.
@hsbt
hsbt merged commit 536e4bd into ruby:master Jul 23, 2026
106 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants