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:
parent
febb7b1748
commit
e342a4f143
10 changed files with 31 additions and 25 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue