diff --git a/lib/rb-inotify/notifier.rb b/lib/rb-inotify/notifier.rb
index <HASH>..<HASH> 100644
--- a/lib/rb-inotify/notifier.rb
+++ b/lib/rb-inotify/notifier.rb
@@ -270,11 +270,11 @@ module INotify
 
       events = []
       cookies = {}
-      while ev = Event.consume(data, self)
-        events << ev
-        next if ev.cookie == 0
-        cookies[ev.cookie] ||= []
-        cookies[ev.cookie] << ev
+      while event = Event.consume(data, self)
+        events << event
+        next if event.cookie == 0
+        cookies[event.cookie] ||= []
+        cookies[event.cookie] << event
       end
       cookies.each {|c, evs| evs.each {|ev| ev.related.replace(evs - [ev]).freeze}}
       events
Rename conflict variable with the following block

This commit removes below interpreter warning.

* warning: shadowing outer local variable