[Groonga-commit] droonga/droonga-engine at fd2d4df [master] Use `key?`

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jun 28 22:46:14 JST 2014


Kouhei Sutou	2014-06-28 22:46:14 +0900 (Sat, 28 Jun 2014)

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

  Message:
    Use `key?`
    
    `keys.include?` isn't straightforward and creates a needless temporary
    array.

  Modified files:
    lib/droonga/plugins/search/distributed_search_planner.rb

  Modified: lib/droonga/plugins/search/distributed_search_planner.rb (+1 -1)
===================================================================
--- lib/droonga/plugins/search/distributed_search_planner.rb    2014-06-28 22:44:40 +0900 (e1ff66d)
+++ lib/droonga/plugins/search/distributed_search_planner.rb    2014-06-28 22:46:14 +0900 (8340a0e)
@@ -72,7 +72,7 @@ module Droonga
           query = @queries[name]
           return true if query["groupBy"]
           name = query["source"]
-          return false unles****@queri*****?(name)
+          return false unles****@queri*****?(name)
           unifiable?(name)
         end
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



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