Navigation Menu

Skip to content

Commit

Permalink
Suppress a warning
Browse files Browse the repository at this point in the history
    lib/droonga/watcher.rb:82: warning: shadowing outer local variable - query
  • Loading branch information
kou committed Apr 24, 2014
1 parent 1196147 commit 592a92e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/watcher.rb
Expand Up @@ -79,8 +79,8 @@ def unsubscribe(request)
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?
Expand Down

0 comments on commit 592a92e

Please sign in to comment.