[Groonga-commit] droonga/droonga-engine at c1b4562 [master] Check existece of a key more smartly

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Thu May 8 17:32:14 JST 2014


YUKI Hiroshi	2014-05-08 17:32:14 +0900 (Thu, 08 May 2014)

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

  Message:
    Check existece of a key more smartly

  Modified files:
    lib/droonga/serf_event_handler.rb

  Modified: lib/droonga/serf_event_handler.rb (+1 -1)
===================================================================
--- lib/droonga/serf_event_handler.rb    2014-05-08 17:19:52 +0900 (ea9ab63)
+++ lib/droonga/serf_event_handler.rb    2014-05-08 17:32:14 +0900 (9e678be)
@@ -58,7 +58,7 @@ module Droonga
     end
 
     def self_changed?
-      changed_nodes.keys.include?(ENV["SERF_SELF_NAME"])
+      changed_nodes.key?(ENV["SERF_SELF_NAME"])
     end
 
     def changed_nodes
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る