Skip to content

Commit 6ac3e8a

Browse files
committed
Remove respond_to? check for Ruby 2.1+ feature
1 parent 1b69bf5 commit 6ac3e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http/persistent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ def connection_for uri
621621
end
622622

623623
http.read_timeout = @read_timeout if @read_timeout
624-
http.keep_alive_timeout = @idle_timeout if @idle_timeout && http.respond_to?(:keep_alive_timeout=)
624+
http.keep_alive_timeout = @idle_timeout if @idle_timeout
625625

626626
return yield connection
627627
rescue Errno::ECONNREFUSED

0 commit comments

Comments
 (0)