summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-17 11:45:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-19 00:02:58 +0900
commit768668a4de144b348f7df59f680a644fe8c46928 (patch)
treeefc13c0905951fec31b32616d737f1777348ab60 /test
parent104089ce022437ca3b8dc00dcfa5c73dc55469f3 (diff)
[flori/json] Remove unnecessary code
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. https://github.com/flori/json/commit/5d9ab87f8e
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8091
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions