Skip to content

Commit 6ad3c1a

Browse files
committed
style: clear hash conversion gradual offense
1 parent b998051 commit 6ad3c1a

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

.rubocop_gradual.lock

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/oauth2/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def execute_request(verb, url, opts = {})
446446
# See: Hash#partition https://bugs.ruby-lang.org/issues/16252
447447
req_opts, oauth_opts = opts.
448448
partition { |k, _v| RESERVED_REQ_KEYS.include?(k.to_s) }.
449-
map { |p| Hash[p] }
449+
map(&:to_h)
450450

451451
begin
452452
response = connection.run_request(verb, url, req_opts[:body], req_opts[:headers]) do |req|

0 commit comments

Comments
 (0)