Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
dpep committed Dec 9, 2022
1 parent bb16658 commit 0fe2519
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/faraday/adapter/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ def call(env)

block_arity = stub.block.arity
params = if block_arity >= 0
[env, meta].take(block_arity)
else
[env, meta]
end
[env, meta].take(block_arity)
else
[env, meta]
end

timeout = request_timeout(:open, env[:request])
timeout ||= request_timeout(:read, env[:request])
Expand All @@ -297,7 +297,6 @@ def call(env)
stub.block.call(*params)
end


# We need to explicitly pass `reason_phrase = nil` here to avoid keyword args conflicts.
# See https://github.com/lostisland/faraday/issues/1444
# TODO: remove `nil` explicit reason_phrase once Ruby 3.0 becomes minimum req. version
Expand Down

0 comments on commit 0fe2519

Please sign in to comment.