1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00

fix: address minor issues detected by Go linters

This commit is contained in:
Frédéric Guillot 2025-03-24 20:42:30 -07:00
parent febb7b1748
commit e342a4f143
10 changed files with 31 additions and 25 deletions

View file

@ -318,9 +318,10 @@ func (f *FeedQueryBuilder) fetchFeedCounter() (unreadCounters map[int64]int, rea
return nil, nil, fmt.Errorf(`store: unable to fetch feed counter row: %w`, err)
}
if status == model.EntryStatusRead {
switch status {
case model.EntryStatusRead:
readCounters[feedID] = count
} else if status == model.EntryStatusUnread {
case model.EntryStatusUnread:
unreadCounters[feedID] = count
}
}