diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-05-04 17:39:06 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-04 18:14:03 -0400 |
commit | 5448970950008fb49092fcfbdb155161d707e10f (patch) | |
tree | 1e777bd8507e562bb0344a6723fc7d417d216000 /app/helpers | |
parent | 92c25f42009ce42c439efa4236d14ac1440711e4 (diff) | |
download | gitlab-ce-5448970950008fb49092fcfbdb155161d707e10f.tar.gz |
Remove `rescue` clause from `repository_size` helperrs-repository-size-format
The repository size has since become calculated (and cached) more
intelligently, and this should no longer be necessary.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/projects_helper.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 058233c88ad..20e47f77b48 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -202,11 +202,6 @@ module ProjectsHelper def repository_size(project = @project) size_in_bytes = project.repository_size * 1.megabyte number_to_human_size(size_in_bytes, delimiter: ',', precision: 2) - rescue - # In order to prevent 500 error - # when application cannot allocate memory - # to calculate repo size - just show 'Unknown' - 'unknown' end def default_url_to_repo(project = @project) |