mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +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)
|
elapsed := time.Since(start)
|
||||||
|
|
||||||
if nil != latest {
|
if nil == latest || latest.ID != index.ID {
|
||||||
if latest.ID != index.ID {
|
msg := fmt.Sprintf(Conf.Language(147), elapsed.Seconds())
|
||||||
util.PushStatusBar(fmt.Sprintf(Conf.Language(147), elapsed.Seconds()))
|
util.PushStatusBar(msg)
|
||||||
|
util.PushMsg(msg, 5000)
|
||||||
} else {
|
} else {
|
||||||
util.PushStatusBar(Conf.Language(148))
|
msg := Conf.Language(148)
|
||||||
}
|
util.PushStatusBar(msg)
|
||||||
} else {
|
util.PushMsg(msg, 5000)
|
||||||
util.PushStatusBar(fmt.Sprintf(Conf.Language(147), elapsed.Seconds()))
|
|
||||||
}
|
}
|
||||||
util.PushClearProgress()
|
util.PushClearProgress()
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue