[Groonga-commit] droonga/droonga-engine at 592a92e [master] Suppress a warning

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 24 16:47:11 JST 2014


Kouhei Sutou	2014-04-24 16:47:11 +0900 (Thu, 24 Apr 2014)

  New Revision: 592a92e3ffd974a6e49406348ce9cbf202c1c416
  https://github.com/droonga/droonga-engine/commit/592a92e3ffd974a6e49406348ce9cbf202c1c416

  Message:
    Suppress a warning
    
        lib/droonga/watcher.rb:82: warning: shadowing outer local variable - query

  Modified files:
    lib/droonga/watcher.rb

  Modified: lib/droonga/watcher.rb (+2 -2)
===================================================================
--- lib/droonga/watcher.rb    2014-04-24 16:43:05 +0900 (851ad09)
+++ lib/droonga/watcher.rb    2014-04-24 16:47:11 +0900 (e003e6c)
@@ -79,8 +79,8 @@ module Droonga
         return unless query_record
 
         subscriptions = subscriber_record.subscriptions
-        new_subscriptions = subscriptions.select do |query|
-          query != query_record
+        new_subscriptions = subscriptions.select do |subscription|
+          subscription != query_record
         end
 
         if new_subscriptions.empty?
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index