It's dangerous to rescue errors here as it will hide bugs. define_tree_vars already catch all situations where something may not exist.
This commit is contained in:
parent
39def0dcbb
commit
48a36851e6
1 changed files with 0 additions and 4 deletions
|
@ -44,8 +44,6 @@ class RefsController < ApplicationController
|
||||||
no_cache_headers
|
no_cache_headers
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue
|
|
||||||
return render_404
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def blob
|
def blob
|
||||||
|
@ -66,8 +64,6 @@ class RefsController < ApplicationController
|
||||||
else
|
else
|
||||||
head(404)
|
head(404)
|
||||||
end
|
end
|
||||||
rescue
|
|
||||||
return render_404
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def blame
|
def blame
|
||||||
|
|
Loading…
Reference in a new issue