Skip to content

Conversation

@nobu
Copy link
Member

@nobu nobu commented Jul 17, 2023

No description provided.

@hsbt
Copy link
Member

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 ruby:master Jul 18, 2023
@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.

2 participants