[Groonga-commit] groonga/groonga-query-log [master] Suppress a warning

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jan 18 13:59:31 JST 2013


Kouhei Sutou	2013-01-18 13:59:31 +0900 (Fri, 18 Jan 2013)

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

  Log:
    Suppress a warning
    
    lib/groonga/query-log/analyzer/reporter/html.rb:56: warning: assigned but unused variable - command
    
    We should use more clean solution. For example, we extract ERB
    template to other file.

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

  Modified: lib/groonga/query-log/analyzer/reporter/html.rb (+1 -0)
===================================================================
--- lib/groonga/query-log/analyzer/reporter/html.rb    2013-01-18 13:57:13 +0900 (466fdf5)
+++ lib/groonga/query-log/analyzer/reporter/html.rb    2013-01-18 13:59:31 +0900 (0258ed1)
@@ -54,6 +54,7 @@ module Groonga
 
         def report_statistic(statistic)
           command = statistic.command
+          _ = command # XXX: suppress warning
           statistic_html = erb(<<-EOH, __LINE__ + 1, binding)
       <div class="statistic-heading">
         <h3>Command</h3>
-------------- next part --------------
HTML����������������������������...
Download 



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