[Groonga-commit] droonga/fluent-plugin-droonga at ae9564b [master] Simplify the "each" loop

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 5 12:46:57 JST 2013


YUKI Hiroshi	2013-12-05 12:46:57 +0900 (Thu, 05 Dec 2013)

  New Revision: ae9564b0b13503140cc8f9fa16f4518acb7e4589
  https://github.com/droonga/fluent-plugin-droonga/commit/ae9564b0b13503140cc8f9fa16f4518acb7e4589

  Message:
    Simplify the "each" loop

  Modified files:
    lib/droonga/plugin/distributor/distributed_search_plan.rb

  Modified: lib/droonga/plugin/distributor/distributed_search_plan.rb (+1 -2)
===================================================================
--- lib/droonga/plugin/distributor/distributed_search_plan.rb    2013-12-05 12:45:28 +0900 (01b4fba)
+++ lib/droonga/plugin/distributor/distributed_search_plan.rb    2013-12-05 12:46:57 +0900 (dd73041)
@@ -37,8 +37,7 @@ module Droonga
 
       @queries.each do |input_name, query|
         # Skip reducing phase for a result with no output.
-        next unless query["output"]
-        @messages << build_reducer(input_name, query)
+        @messages << build_reducer(input_name, query) if query["output"]
       end
 
       gatherer = {
-------------- next part --------------
HTML����������������������������...
Download 



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