Navigation Menu

Skip to content

Commit

Permalink
Use "each" instead of "collect", because results are not used
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 22, 2015
1 parent f3a3347 commit 3923434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/forward_buffer.rb
Expand Up @@ -65,7 +65,7 @@ def add(message, destination)
def start_forward
logger.trace("start_forward: start")
n_forwarded_messages = 0
buffered_messages.collect do |buffered_message_path|
buffered_messages.each do |buffered_message_path|
forwarded = forward(buffered_message_path)
n_forwarded_messages += 1 if forwarded
end
Expand Down

0 comments on commit 3923434

Please sign in to comment.