Skip to content

Conversation

@ericproulx
Copy link
Contributor

This PR introduces try in the codebase. We had several cases of if obj.respond_to?(<name>) && obj.and I think usingtry` is more readable.

@ericproulx ericproulx marked this pull request as ready for review February 16, 2025 17:21
@ericproulx ericproulx requested a review from dblock February 16, 2025 17:21
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it a lot!

@dblock dblock merged commit 48ebc25 into ruby-grape:master Feb 18, 2025
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants