[Groonga-commit] droonga/fluent-plugin-droonga at 87e6cea [master] Reduce method chain

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 14 12:48:50 JST 2014


Kouhei Sutou	2014-02-14 12:48:50 +0900 (Fri, 14 Feb 2014)

  New Revision: 87e6cea791a32cf93dcfb356e2acf99c3a46d66e
  https://github.com/droonga/fluent-plugin-droonga/commit/87e6cea791a32cf93dcfb356e2acf99c3a46d66e

  Message:
    Reduce method chain
    
    "end.XXX.YYY" is too a long method chain.

  Modified files:
    lib/droonga/error.rb

  Modified: lib/droonga/error.rb (+3 -2)
===================================================================
--- lib/droonga/error.rb    2014-02-14 12:47:41 +0900 (8f76bca)
+++ lib/droonga/error.rb    2014-02-14 12:48:50 +0900 (e771925)
@@ -24,9 +24,10 @@ module Droonga
 
     def initialize(errors=[])
       @errors = errors
-      message =****@error***** do |error|
+      error_messages =****@error***** do |error|
         error.message
-      end.sort.join("\n-----------------------\n")
+      end
+      message = error_messages.sort.join("\n-----------------------\n")
       super(message)
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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