Fix code style.
This commit is contained in:
+10
-10
@@ -113,18 +113,18 @@ module Gollum
|
|||||||
tmp_array = folder.split('/')
|
tmp_array = folder.split('/')
|
||||||
|
|
||||||
0.upto(tmp_array.size - 1) do |index|
|
0.upto(tmp_array.size - 1) do |index|
|
||||||
if cwd_array[index].nil? or changed then
|
if cwd_array[index].nil? || changed
|
||||||
html += new_sub_folder tmp_array[index]
|
html += new_sub_folder tmp_array[index]
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
if cwd_array[index] != tmp_array[index] then
|
if cwd_array[index] != tmp_array[index]
|
||||||
changed = true
|
changed = true
|
||||||
index.upto(cwd_array.size - 1) do |i|
|
index.upto(cwd_array.size - 1) do |i|
|
||||||
html += end_folder
|
html += end_folder
|
||||||
end
|
|
||||||
html += new_sub_folder tmp_array[index]
|
|
||||||
end
|
end
|
||||||
|
html += new_sub_folder tmp_array[index]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
html += new_page page
|
html += new_page page
|
||||||
|
|||||||
Reference in New Issue
Block a user