[Groonga-commit] droonga/droonga-client-ruby at eee7b90 [master] Don't call "break" in non-loop block.

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 7 12:32:57 JST 2015


YUKI Hiroshi	2015-05-07 12:32:57 +0900 (Thu, 07 May 2015)

  New Revision: eee7b904c7fdd63b9b53271e65b617ecb3775e89
  https://github.com/droonga/droonga-client-ruby/commit/eee7b904c7fdd63b9b53271e65b617ecb3775e89

  Message:
    Don't call "break" in non-loop block.
    
    This is to avoid the error:
    /var/lib/gems/1.9.1/gems/droonga-client-0.2.2/bin/droonga-request:150:in `block (2 levels) in <top (required)>': brea
    k from proc-closure (LocalJumpError)

  Modified files:
    bin/droonga-request

  Modified: bin/droonga-request (+1 -1)
===================================================================
--- bin/droonga-request    2015-05-07 12:30:23 +0900 (55d66c0)
+++ bin/droonga-request    2015-05-07 12:32:57 +0900 (7717cd9)
@@ -147,7 +147,7 @@ json_parser.on_parse_complete = lambda do |request_message|
     end
     message << "\n"
     print(message)
-    break if options[:exit_on_response]
+    client.close if options[:exit_on_response]
   end
   request.wait
 end
-------------- next part --------------
HTML����������������������������...
Download 



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