Skip to content
代码片段 群组 项目
未验证 提交 3ea2b747 编辑于 作者: Timotej Ecimovic's avatar Timotej Ecimovic 提交者: GitHub
浏览文件

If log is empty, do not write it out into the zap file. (#1238)

上级 e8553598
No related branches found
No related tags found
无相关合并请求
...@@ -175,7 +175,11 @@ async function exportDataIntoFile( ...@@ -175,7 +175,11 @@ async function exportDataIntoFile(
} }
state = ff.convertToFile(state) state = ff.convertToFile(state)
if (options.removeLog) delete state.log if (options.removeLog) {
delete state.log
} else if (state.log != null && state.log.length == 0) {
delete state.log
}
if (fs.existsSync(filePath)) { if (fs.existsSync(filePath)) {
fs.copyFileSync(filePath, filePath + '~') fs.copyFileSync(filePath, filePath + '~')
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册