Skip to content

Commit 49b0d16

Browse files
committed
Fix ruby-head unused block argument warning
1 parent 98b8944 commit 49b0d16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/redis_client/middlewares_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def test_multi_instrumentation
7070
end
7171

7272
module DummyMiddleware
73-
def call(command, _config)
73+
def call(command, _config, &_)
7474
command
7575
end
7676

77-
def call_pipelined(commands, _config)
77+
def call_pipelined(commands, _config, &_)
7878
commands
7979
end
8080
end

test/redis_client_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_dns_resolution_failure
5252

5353
def test_older_server
5454
fake_redis5_driver = Class.new(RedisClient::RubyConnection) do
55-
def call_pipelined(commands, *)
55+
def call_pipelined(commands, *, &_)
5656
if commands.any? { |c| c == ["HELLO", "3"] }
5757
raise RedisClient::CommandError, "ERR unknown command `HELLO`, with args beginning with: `3`"
5858
else
@@ -71,7 +71,7 @@ def call_pipelined(commands, *)
7171

7272
def test_redis_6_server_with_missing_hello_command
7373
fake_redis6_driver = Class.new(RedisClient::RubyConnection) do
74-
def call_pipelined(commands, *)
74+
def call_pipelined(commands, *, &_)
7575
if commands.any? { |c| c == ["HELLO", "3"] }
7676
raise RedisClient::CommandError, "ERR unknown command 'HELLO'"
7777
else

0 commit comments

Comments
 (0)