From ca50f8cdd0b9d28fca31a8c6b7e83a431da38668 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Sat, 14 Mar 2020 22:01:58 +0100 Subject: [PATCH] Avoid Ruby warning on unused variable --- lib/async/container/notify/server.rb | 2 +- spec/async/container/forked_spec.rb | 2 +- spec/async/container/notify/pipe_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/async/container/notify/server.rb b/lib/async/container/notify/server.rb index e1756d4..d7f687b 100644 --- a/lib/async/container/notify/server.rb +++ b/lib/async/container/notify/server.rb @@ -98,7 +98,7 @@ def close def receive while true - data, address, flags, *controls = @bound.recvmsg(MAXIMUM_MESSAGE_SIZE) + data, _address, _flags, *_controls = @bound.recvmsg(MAXIMUM_MESSAGE_SIZE) message = Server.load(data) diff --git a/spec/async/container/forked_spec.rb b/spec/async/container/forked_spec.rb index 682e7fb..7da8a75 100644 --- a/spec/async/container/forked_spec.rb +++ b/spec/async/container/forked_spec.rb @@ -45,7 +45,7 @@ 3.times do trigger.last.puts "die" - child_pid = pids.first.gets + _child_pid = pids.first.gets end thread.kill diff --git a/spec/async/container/notify/pipe_spec.rb b/spec/async/container/notify/pipe_spec.rb index 80a87bb..e53b6be 100644 --- a/spec/async/container/notify/pipe_spec.rb +++ b/spec/async/container/notify/pipe_spec.rb @@ -38,7 +38,7 @@ # Wait for the state to be updated by the child process: container.sleep - child, state = container.state.first + _child, state = container.state.first expect(state).to be == {status: "Initializing..."} container.wait