Commit 3bb3f7dd authored by Frederic Van Espen's avatar Frederic Van Espen

fix code style

parent e8419fb5
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment