Navigation Menu

Skip to content

Commit

Permalink
Use key?
Browse files Browse the repository at this point in the history
`keys.include?` isn't straightforward and creates a needless temporary
array.
  • Loading branch information
kou committed Jun 28, 2014
1 parent e30586f commit fd2d4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/plugins/search/distributed_search_planner.rb
Expand Up @@ -72,7 +72,7 @@ def unifiable?(name)
query = @queries[name]
return true if query["groupBy"]
name = query["source"]
return false unless @queries.keys.include?(name)
return false unless @queries.key?(name)
unifiable?(name)
end

Expand Down

0 comments on commit fd2d4df

Please sign in to comment.