Skip to content

Conversation

@herwinw
Copy link
Member

@herwinw herwinw commented Jan 18, 2026

  • Remove checks from inside the blocks that raise. This is all code that was never executed
  • Add message validations for exceptions

* Remove all validations inside a block that should raise, this code
  should never be executed.
* Update the spec with `[:nil]`, to use `[nil]` instead. The old code
  tested the exact same thing as `[:a]` above it.
@eregon eregon merged commit fd1e5fd into ruby:master Jan 18, 2026
16 checks passed
@herwinw herwinw deleted the hash_constructor branch January 18, 2026 14:16
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