Skip to content

Commit

Permalink
Much simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeonfire committed May 22, 2024
1 parent 54519b2 commit 6cbfed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webmock/http_lib_adapters/async_http_client_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def inspect
private

def socket_class
@_socket_class ||= Gem::Dependency.new("async-io").matching_specs.any? ? Async::IO::Socket : Socket
defined?(Async::IO::Socket) ? Async::IO::Socket : Socket
end

def create_connected_sockets
Expand Down

0 comments on commit 6cbfed0

Please sign in to comment.