Use .times.

Fix style.
This commit is contained in:
bootstraponline
2012-07-17 11:12:59 -06:00
parent 9fa629de31
commit be4b12b4c8
+3 -3
View File
@@ -110,9 +110,9 @@ module Gollum
path = page.path
folder = ::File.dirname path
tmp_array = folder.split('/')
tmp_array = folder.split '/'
0.upto(tmp_array.size - 1) do |index|
(0...tmp_array.size).each do | index |
if cwd_array[ index ].nil? || changed
html += new_sub_folder tmp_array[ index ]
next
@@ -120,7 +120,7 @@ module Gollum
if cwd_array[ index ] != tmp_array[ index ]
changed = true
index.upto(cwd_array.size - 1) do |i|
(cwd_array.size - index).times do
html += end_folder
end
html += new_sub_folder tmp_array[ index ]