Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor JSON::Any#size to use two branches instead of three #14533

Merged
merged 1 commit into from
Apr 29, 2024

Conversation

meatball133
Copy link
Contributor

@meatball133 meatball133 commented Apr 23, 2024

I don't see any purpose in having 3 branches; the code becomes more compact with 2 branches. However, there might be some technical reason why there are 3 branches (which I am not aware of).

Copy link
Member

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

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

LGTM. We're using the same condensed form in other places already.

@straight-shoota straight-shoota added this to the 1.13.0 milestone Apr 28, 2024
@straight-shoota straight-shoota merged commit 8b9e299 into crystal-lang:master Apr 29, 2024
60 checks passed
This pull request was closed.
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.

4 participants