From 48a36851e60249565e0869f88a05b36252c7e893 Mon Sep 17 00:00:00 2001 From: Gabriel Mazetto Date: Sat, 26 May 2012 15:27:29 -0300 Subject: [PATCH] It's dangerous to rescue errors here as it will hide bugs. define_tree_vars already catch all situations where something may not exist. --- app/controllers/refs_controller.rb | 4 ---- 1 file changed, 0 insertions(+), 4 deletions(-) diff --git a/app/controllers/refs_controller.rb b/app/controllers/refs_controller.rb index 60d6946..2de40b4 100644 --- a/app/controllers/refs_controller.rb +++ b/app/controllers/refs_controller.rb @@ -44,8 +44,6 @@ class RefsController < ApplicationController no_cache_headers end end - rescue - return render_404 end def blob @@ -66,8 +64,6 @@ class RefsController < ApplicationController else head(404) end - rescue - return render_404 end def blame -- libgit2 0.21.2