Skip to content

Commit 0d6a3cb

Browse files
committed
Use each instead of each_with_index in source_file.erb
1 parent 08de77b commit 0d6a3cb

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)