Navigation Menu

Skip to content

Commit

Permalink
Suppress a warning
Browse files Browse the repository at this point in the history
    lib/droonga/session.rb:76: warning: shadowing outer local variable - name
  • Loading branch information
kou committed Apr 24, 2014
1 parent 6c109d2 commit c5542e8
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions lib/droonga/session.rb
Expand Up @@ -73,21 +73,25 @@ def receive(name, value)
end
@dispatcher.reply("body" => reply_body)
end
step["descendants"].each do |name, routes|
message = {
"id" => @id,
"input" => name,
"value" => result[name]
}
routes.each do |route|
@dispatcher.dispatch(message, route)
end
end
send_to_descendantas(step["descendants"], result)
@n_dones += 1
end
end

private
def send_to_descendantas(descendantas, result)
descendantas.each do |name, routes|
message = {
"id" => @id,
"input" => name,
"value" => result[name]
}
routes.each do |route|
@dispatcher.dispatch(message, route)
end
end
end

def log_tag
"session"
end
Expand Down

0 comments on commit c5542e8

Please sign in to comment.