Commit 48a36851e60249565e0869f88a05b36252c7e893

Authored by Gabriel Mazetto
1 parent 39def0dc

It's dangerous to rescue errors here as it will hide bugs. define_tree_vars alre…

…ady catch all situations where something may not exist.
Showing 1 changed file with 0 additions and 4 deletions   Show diff stats
app/controllers/refs_controller.rb
... ... @@ -44,8 +44,6 @@ class RefsController < ApplicationController
44 44 no_cache_headers
45 45 end
46 46 end
47   - rescue
48   - return render_404
49 47 end
50 48  
51 49 def blob
... ... @@ -66,8 +64,6 @@ class RefsController < ApplicationController
66 64 else
67 65 head(404)
68 66 end
69   - rescue
70   - return render_404
71 67 end
72 68  
73 69 def blame
... ...