diff options
author | Frederic Van Espen <fes@escaux.com> | 2018-12-27 12:37:43 +0100 |
---|---|---|
committer | Frederic Van Espen <fes@escaux.com> | 2018-12-27 13:43:45 +0100 |
commit | 3bb3f7ddd073e67fafbc210d0e18c76a87b96dcb (patch) | |
tree | dba688dd4af52f5cd141f9b3910b8f7dc659c156 /lib/backup | |
parent | e8419fb5bba0e5ba9247983ad24ee5bc2e7b8115 (diff) | |
download | gitlab-ce-3bb3f7ddd073e67fafbc210d0e18c76a87b96dcb.tar.gz |
fix code style
Diffstat (limited to 'lib/backup')
-rw-r--r-- | lib/backup/manager.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb index 792a25422ee..12121920c67 100644 --- a/lib/backup/manager.rb +++ b/lib/backup/manager.rb @@ -234,11 +234,11 @@ module Backup end def tar_file - if ENV['BACKUP'] - @tar_file ||= ENV['BACKUP'] + "#{FILE_NAME_SUFFIX}" - else - @tar_file ||= "#{backup_information[:backup_created_at].strftime('%s_%Y_%m_%d_')}#{backup_information[:gitlab_version]}#{FILE_NAME_SUFFIX}" - end + @tar_file ||= if ENV['BACKUP'] + ENV['BACKUP'] + "#{FILE_NAME_SUFFIX}" + else + "#{backup_information[:backup_created_at].strftime('%s_%Y_%m_%d_')}#{backup_information[:gitlab_version]}#{FILE_NAME_SUFFIX}" + end end def backup_information |