mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 06:30:14 +01:00
🎨 Clean code
This commit is contained in:
parent
f6654f5dde
commit
7a2fded724
2 changed files with 2 additions and 2 deletions
|
|
@ -297,7 +297,7 @@ func refreshAnnouncement() {
|
|||
}
|
||||
}
|
||||
|
||||
for _, announcement := range GetAnnouncements() {
|
||||
for _, announcement := range getAnnouncements() {
|
||||
var exist bool
|
||||
for _, existingAnnouncement := range existingAnnouncements {
|
||||
if announcement.Id == existingAnnouncement.Id {
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ type Announcement struct {
|
|||
Region int `json:"region"`
|
||||
}
|
||||
|
||||
func GetAnnouncements() (ret []*Announcement) {
|
||||
func getAnnouncements() (ret []*Announcement) {
|
||||
result, err := util.GetRhyResult(false)
|
||||
if err != nil {
|
||||
logging.LogErrorf("get announcement failed: %s", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue