提交 3bb3f7dd 编写于 作者: F Frederic Van Espen

fix code style

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册