From a7dabab3b5af8ce8a78a3494e3ba3e7178dd06c9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 8 Dec 2018 17:37:17 +0000 Subject: [PATCH] kqueue: get rid of unused variable warnings --- lib/sleepy_penguin/kqueue.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sleepy_penguin/kqueue.rb b/lib/sleepy_penguin/kqueue.rb index 9f55efc..d1a1577 100644 --- a/lib/sleepy_penguin/kqueue.rb +++ b/lib/sleepy_penguin/kqueue.rb @@ -73,7 +73,7 @@ class SleepyPenguin::Kqueue end if block_given? - n = @io.kevent(changelist, *args) do |ident,filter,flags, + @io.kevent(changelist, *args) do |ident,filter,flags, fflags,data,udata| # This may raise and cause events to be lost, # that's the users' fault/problem @@ -82,7 +82,7 @@ class SleepyPenguin::Kqueue fflags, data, udata) end else - n = @io.kevent(changelist, *args) + @io.kevent(changelist, *args) end end -- 2.11.4.GIT