Skip to content

Commit

Permalink
Merge pull request #53 from koic/use_each_instead_of_each_with_index
Browse files Browse the repository at this point in the history
Use `each` instead of `each_with_index` in source_file.erb
  • Loading branch information
PragTob committed May 17, 2017
2 parents 08de77b + 0d6a3cb commit 8b1479b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/source_file.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<pre>
<ol>
<% source_file.lines.each_with_index do |line| %>
<% source_file.lines.each do |line| %>
<li class="<%= line.status %>" data-hits="<%= line.coverage ? line.coverage : '' %>" data-linenumber="<%= line.number %>">
<% if line.covered? %><span class="hits"><%= line.coverage %></span><% end %>
<% if line.skipped? %><span class="hits">skipped</span><% end %>
Expand All @@ -20,4 +20,4 @@
<% end %>
</ol>
</pre>
</div>
</div>

0 comments on commit 8b1479b

Please sign in to comment.