diff options
author | James Lopez <james@jameslopez.es> | 2018-09-07 15:43:51 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-09-07 15:43:51 +0300 |
commit | f1277fbf0bbe8de330d5d80fdfe411a0c8571022 (patch) | |
tree | 8aa895e931eba976ccfa29867625759eb8441c4c /lib/api | |
parent | 27442862cf81881c81552e64d0b4d3354535c45e (diff) |
refactor code based on feedback
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/project_export.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/project_export.rb b/lib/api/project_export.rb index 9163887ac61..8562ae6d737 100644 --- a/lib/api/project_export.rb +++ b/lib/api/project_export.rb @@ -21,8 +21,8 @@ module API detail 'This feature was introduced in GitLab 10.6.' end get ':id/export/download' do - if user_project.export_project_exists? - present_carrierwave_file!(user_ project.export_file) + if user_project.export_file_exists? + present_carrierwave_file!(user_project.export_file) else render_api_error!('404 Not found or has expired', 404) end |