Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/http/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class << self
# @api public
def coerce(object)
object = if object.respond_to?(:to_hash) then object.to_hash
elsif object.respond_to?(:to_h) then object.to_h
elsif object.respond_to?(:to_a) then object.to_a
elsif object.respond_to?(:to_h) then object.to_h
elsif object.respond_to?(:to_a) then object.to_a
else raise Error, "Can't coerce #{object.inspect} to Headers"
end

Expand Down
3 changes: 1 addition & 2 deletions lib/http/retriable/performer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def finish_attempt(client, err)
#
# @api private
# @return [Array]
# rubocop:disable Lint/RescueException
# rubocop:disable-next Lint/RescueException
def try_request
err, res = nil

Expand All @@ -117,7 +117,6 @@ def try_request

[err, res]
end
# rubocop:enable Lint/RescueException

# Checks whether the request should be retried
#
Expand Down