From 78dd5774b3a62e60c553b067ac6585ab6adbb316 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Tue, 17 Jul 2012 10:55:57 -0600 Subject: [PATCH] Fix code style. --- lib/gollum/file_view.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/gollum/file_view.rb b/lib/gollum/file_view.rb index 6f56d541..b7cf3986 100644 --- a/lib/gollum/file_view.rb +++ b/lib/gollum/file_view.rb @@ -113,18 +113,18 @@ module Gollum tmp_array = folder.split('/') 0.upto(tmp_array.size - 1) do |index| - if cwd_array[index].nil? or changed then - html += new_sub_folder tmp_array[index] - next - end + if cwd_array[index].nil? || changed + html += new_sub_folder tmp_array[index] + next + end - if cwd_array[index] != tmp_array[index] then - changed = true - index.upto(cwd_array.size - 1) do |i| - html += end_folder - end - html += new_sub_folder tmp_array[index] + if cwd_array[index] != tmp_array[index] + changed = true + index.upto(cwd_array.size - 1) do |i| + html += end_folder end + html += new_sub_folder tmp_array[index] + end end html += new_page page