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

Simplify #531

Merged
merged 4 commits into from
Jul 18, 2023
Merged

Simplify #531

merged 4 commits into from
Jul 18, 2023

Conversation

nobu
Copy link
Contributor

@nobu nobu commented Jul 17, 2023

No description provided.

@hsbt
Copy link
Collaborator

hsbt commented Jul 18, 2023

@nobu Can you rebase from d88fea4?

nobu added 4 commits July 18, 2023 16:10
This macro is defined since ruby 2.1, which is older than the required
ruby version.
In `JSON#generate` and `JSON#fast_generate`:

- When the given `opts` is a `JSON::State` the variable is set to
  `nil`.
- But it will be never used as the next `if` blocks will not be
  executed.
- `JSON::State#configure` does the conversion to `Hash`, the
  conversions in the `if` block are just duplication.
- `JSON::State,new` does the same thing with `configure` when an
  argument is given.
@hsbt hsbt merged commit 7ec73ad into flori:master Jul 18, 2023
65 checks passed
@nobu nobu deleted the simplify branch July 19, 2023 21:29
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.

None yet

2 participants