summaryrefslogtreecommitdiff
path: root/app/controllers/wikis_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 21:05:10 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 21:05:10 +0300
commit3011ac4150e355da9e5956cb223d19e18425e0eb (patch)
tree1a857049b14ed6ff2a5f920d94101f9e2ccc7c63 /app/controllers/wikis_controller.rb
parent9f4fde04f5b74199c9bd72621e03c544aaf6f2ef (diff)
downloadgitlab-ce-3011ac4150e355da9e5956cb223d19e18425e0eb.tar.gz
Refactoring and cleanup. Removed unused commit finders
Diffstat (limited to 'app/controllers/wikis_controller.rb')
-rw-r--r--app/controllers/wikis_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/wikis_controller.rb b/app/controllers/wikis_controller.rb
index 940b1e97340..be9ae4f37a4 100644
--- a/app/controllers/wikis_controller.rb
+++ b/app/controllers/wikis_controller.rb
@@ -49,9 +49,9 @@ class WikisController < ProjectResourceController
end
def history
- unless @wiki = @gollum_wiki.find_page(params[:id])
- redirect_to project_wiki_path(@project, :home), notice: "Page not found"
- end
+ @wiki = @gollum_wiki.find_page(params[:id])
+
+ redirect_to(project_wiki_path(@project, :home), notice: "Page not found") unless @wiki
end
def destroy