diff options
Diffstat (limited to 'app/controllers/repositories/lfs_storage_controller.rb')
-rw-r--r-- | app/controllers/repositories/lfs_storage_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/repositories/lfs_storage_controller.rb b/app/controllers/repositories/lfs_storage_controller.rb index 22f1a81b95b..80f7153cd7a 100644 --- a/app/controllers/repositories/lfs_storage_controller.rb +++ b/app/controllers/repositories/lfs_storage_controller.rb @@ -18,10 +18,7 @@ module Repositories def download lfs_object = LfsObject.find_by_oid(oid) - unless lfs_object && lfs_object.file.exists? - render_lfs_not_found - return - end + return render_lfs_not_found unless lfs_object&.file&.exists? send_upload(lfs_object.file, send_params: { content_type: "application/octet-stream" }) end |