Skip to content

Commit

Permalink
Suppress a warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kou committed Jan 18, 2013
1 parent 78210e3 commit 771b292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/groonga/query-log/analyzer/reporter/html.rb
Expand Up @@ -54,6 +54,7 @@ def report_statistics

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>
Expand Down

0 comments on commit 771b292

Please sign in to comment.