[Groonga-commit] droonga/droonga-engine at 3923434 [master] Use "each" instead of "collect", because results are not used

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Wed Apr 22 10:29:00 JST 2015


YUKI Hiroshi	2015-04-22 10:29:00 +0900 (Wed, 22 Apr 2015)

  New Revision: 392343408a71f0be7ac52c52baf4ebb85427255d
  https://github.com/droonga/droonga-engine/commit/392343408a71f0be7ac52c52baf4ebb85427255d

  Message:
    Use "each" instead of "collect", because results are not used

  Modified files:
    lib/droonga/forward_buffer.rb

  Modified: lib/droonga/forward_buffer.rb (+1 -1)
===================================================================
--- lib/droonga/forward_buffer.rb    2015-04-22 10:28:25 +0900 (aeb50c3)
+++ lib/droonga/forward_buffer.rb    2015-04-22 10:29:00 +0900 (04c9f74)
@@ -65,7 +65,7 @@ module Droonga
     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
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index