[Groonga-commit] groonga/groonga-query-log at a3246a6 [master] analyzer: Fix a bug that --no-color option is ignored

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Apr 15 14:33:33 JST 2015


Kouhei Sutou	2015-04-15 14:33:33 +0900 (Wed, 15 Apr 2015)

  New Revision: a3246a65a1443f97abbe874bd1ec6aec80a89d1a
  https://github.com/groonga/groonga-query-log/commit/a3246a65a1443f97abbe874bd1ec6aec80a89d1a

  Message:
    analyzer: Fix a bug that --no-color option is ignored
    
    Reported by Gurunavi, Inc. Thanks!!!

  Modified files:
    lib/groonga/query-log/analyzer/reporter/console.rb

  Modified: lib/groonga/query-log/analyzer/reporter/console.rb (+1 -1)
===================================================================
--- lib/groonga/query-log/analyzer/reporter/console.rb    2014-11-20 14:43:36 +0900 (38ec946)
+++ lib/groonga/query-log/analyzer/reporter/console.rb    2015-04-15 14:33:33 +0900 (4220d93)
@@ -137,7 +137,7 @@ module Groonga
 
         def apply_options(options)
           super
-          @color = options[:color] || @color
+          @color = options[:color] unless options[:color].nil?
         end
 
         def report_statistics
-------------- next part --------------
HTML����������������������������...
Download 



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