Kouhei Sutou
null+****@clear*****
Sat Jun 28 22:44:40 JST 2014
Kouhei Sutou 2014-06-28 22:44:40 +0900 (Sat, 28 Jun 2014) New Revision: e30586f4a829e20bc937edb863e1c6f9a9f8596f https://github.com/droonga/droonga-engine/commit/e30586f4a829e20bc937edb863e1c6f9a9f8596f Message: Use `key?` `keys.include?` isn't straightforward and creates a needless temporary array. Modified files: lib/droonga/serf.rb Modified: lib/droonga/serf.rb (+1 -1) =================================================================== --- lib/droonga/serf.rb 2014-06-28 04:55:48 +0900 (57c79be) +++ lib/droonga/serf.rb 2014-06-28 22:44:40 +0900 (3525da1) @@ -170,7 +170,7 @@ module Droonga def role if status[:role] role = status[:role].to_sym - if self.class::ROLE.keys.include?(role) + if self.class::ROLE.key?(role) return role end end -------------- next part -------------- HTML����������������������������...Download