[Groonga-commit] droonga/droonga-engine at 931976f [master] Check whether the block is given or not correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Sep 5 17:00:20 JST 2014


YUKI Hiroshi	2014-09-05 17:00:20 +0900 (Fri, 05 Sep 2014)

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

  Message:
    Check whether the block is given or not correctly

  Modified files:
    lib/droonga/worker_process_agent.rb

  Modified: lib/droonga/worker_process_agent.rb (+1 -1)
===================================================================
--- lib/droonga/worker_process_agent.rb    2014-09-05 16:54:16 +0900 (d9eda53)
+++ lib/droonga/worker_process_agent.rb    2014-09-05 17:00:20 +0900 (f87f199)
@@ -46,7 +46,7 @@ module Droonga
       on_finish = lambda do
         n_rest_closes -= 1
         if n_rest_closes.zero?
-          block.call if block.given?
+          block.call unless block.nil?
           logger.trace("stop: done")
         end
       end
-------------- next part --------------
HTML����������������������������...
다운로드 



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