🎨 Improve exit when syncing

This commit is contained in:
Daniel 2024-03-28 23:16:40 +08:00
parent 5f12f31adc
commit 9147d626a8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1331,8 +1331,10 @@ func syncRepo(exit, byHand bool) (dataChanged bool, err error) {
processSyncMergeResult(exit, byHand, mergeResult, trafficStat, "a", elapsed)
// 首次数据同步执行完成后再执行索引订正 Index fixing should not be performed before data synchronization https://github.com/siyuan-note/siyuan/issues/10761
checkIndex()
if !exit {
// 首次数据同步执行完成后再执行索引订正 Index fixing should not be performed before data synchronization https://github.com/siyuan-note/siyuan/issues/10761
checkIndex()
}
return
}