Skip to content

Commit 8b1479b

Browse files
authored
Merge pull request #53 from koic/use_each_instead_of_each_with_index
Use `each` instead of `each_with_index` in source_file.erb
2 parents 08de77b + 0d6a3cb commit 8b1479b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

views/source_file.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<pre>
1313
<ol>
14-
<% source_file.lines.each_with_index do |line| %>
14+
<% source_file.lines.each do |line| %>
1515
<li class="<%= line.status %>" data-hits="<%= line.coverage ? line.coverage : '' %>" data-linenumber="<%= line.number %>">
1616
<% if line.covered? %><span class="hits"><%= line.coverage %></span><% end %>
1717
<% if line.skipped? %><span class="hits">skipped</span><% end %>
@@ -20,4 +20,4 @@
2020
<% end %>
2121
</ol>
2222
</pre>
23-
</div>
23+
</div>

0 commit comments

Comments
 (0)