mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Clean code
This commit is contained in:
parent
114d85431f
commit
ebdb5b2a36
1 changed files with 7 additions and 7 deletions
|
|
@ -228,14 +228,14 @@ func IndexRepo(memo string) (err error) {
|
|||
}
|
||||
elapsed := time.Since(start)
|
||||
|
||||
if nil != latest {
|
||||
if latest.ID != index.ID {
|
||||
util.PushStatusBar(fmt.Sprintf(Conf.Language(147), elapsed.Seconds()))
|
||||
} else {
|
||||
util.PushStatusBar(Conf.Language(148))
|
||||
}
|
||||
if nil == latest || latest.ID != index.ID {
|
||||
msg := fmt.Sprintf(Conf.Language(147), elapsed.Seconds())
|
||||
util.PushStatusBar(msg)
|
||||
util.PushMsg(msg, 5000)
|
||||
} else {
|
||||
util.PushStatusBar(fmt.Sprintf(Conf.Language(147), elapsed.Seconds()))
|
||||
msg := Conf.Language(148)
|
||||
util.PushStatusBar(msg)
|
||||
util.PushMsg(msg, 5000)
|
||||
}
|
||||
util.PushClearProgress()
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue