This commit is contained in:
Iris Lightshard 2023-01-10 08:51:25 -07:00
parent fb43dd02b6
commit 536e49c8ac
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -97,9 +97,9 @@ func buildFeed(feed *Feed, nick, data string) error {
func printFeed(feed *Feed, max int64) { func printFeed(feed *Feed, max int64) {
sort.Sort(*feed) sort.Sort(*feed)
for i, entry := range *feed { for i, entry := range *feed {
if int64(i) >= max { if int64(i) >= max {
return return
} }
fmt.Printf("[%s] <%s> %s\n", entry.Timestamp.Format(time.Stamp), entry.Nick, entry.Post) fmt.Printf("[%s] <%s> %s\n", entry.Timestamp.Format(time.Stamp), entry.Nick, entry.Post)
} }
} }