diff options
author | James Lopez <james@jameslopez.es> | 2018-09-07 14:43:51 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-09-07 14:43:51 +0200 |
commit | f1277fbf0bbe8de330d5d80fdfe411a0c8571022 (patch) | |
tree | 8aa895e931eba976ccfa29867625759eb8441c4c /app/models/project.rb | |
parent | 27442862cf81881c81552e64d0b4d3354535c45e (diff) | |
download | gitlab-ce-f1277fbf0bbe8de330d5d80fdfe411a0c8571022.tar.gz |
refactor code based on feedback
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 60d3e99252f..e224eb52a3f 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1738,7 +1738,7 @@ class Project < ActiveRecord::Base :started elsif after_export_in_progress? :after_export_action - elsif export_project_exists? + elsif export_file_exists? :finished else :none @@ -1754,13 +1754,13 @@ class Project < ActiveRecord::Base end def remove_exports - return unless export_project_exists? + return unless export_file_exists? import_export_upload.remove_export_file! import_export_upload.save end - def export_project_exists? + def export_file_exists? export_file&.file end |