Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
fix: non rss addr cause panic
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Jan 7, 2020
1 parent 07fd9de commit 9d6001e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server_rss.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *Server) updateRSS() {
s.state.rssMark[rss] = feed.Items[0].GUID
s.state.rssCache = append(feed.Items[:lastIdx], s.state.rssCache...)
}
} else {
} else if len(feed.Items) > 0 {
if s.Debug {
log.Printf("retrive %d new items, first record", len(feed.Items))
}
Expand Down

0 comments on commit 9d6001e

Please sign in to comment.