Use .times.
Fix style.
This commit is contained in:
@@ -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 ]
|
||||
|
||||
Reference in New Issue
Block a user