Skip to content

Commit

Permalink
Fix rubocop warning
Browse files Browse the repository at this point in the history
  • Loading branch information
y9v committed Feb 4, 2024
1 parent 17fd9d2 commit 7e52fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dalli/socket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class TCP < TCPSocket
attr_accessor :options

if RUBY_VERSION >= '3.0' &&
!::TCPSocket.private_instance_methods.include?(:original_resolv_initialize)
!::TCPSocket.private_instance_methods.include?(:original_resolv_initialize)
def self.open(host, port, options = {})
sock = new(host, port, connect_timeout: options[:socket_timeout])
sock.options = { host: host, port: port }.merge(options)
Expand Down

0 comments on commit 7e52fce

Please sign in to comment.