diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-05-31 11:49:33 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-05-31 11:49:33 +0000 |
commit | 1523d0785755f4ba0679bc08ec370d8299b299f0 (patch) | |
tree | 1cd0271a321eaf10a61b3fce7d8160d3413866dc /lib | |
parent | f1cf1be43bb1e4d5f358a2897d7d881ae521507c (diff) | |
parent | 387a4f4b2cc9cffe2a21ef1060fe35c60d1ac769 (diff) | |
download | gitlab-ce-1523d0785755f4ba0679bc08ec370d8299b299f0.tar.gz |
Merge branch 'remove-legacy-artifacts-related-code' into 'master'
Remove legacy artifact related code
Closes #58595
See merge request gitlab-org/gitlab-ce!26475
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 7e4539d0419..00bcf6b055b 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -445,7 +445,7 @@ module API end def present_carrierwave_file!(file, supports_direct_download: true) - return not_found! unless file.exists? + return not_found! unless file&.exists? if file.file_storage? present_disk_file!(file.path, file.filename) |