pkg/timeline/redisset.go
Method redisSortedSetTimeline.Items
has 66 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (timeline *redisSortedSetTimeline) Items(before, after string) (microsub.Timeline, error) {
conn := timeline.pool.Get()
defer conn.Close()
items := []microsub.Item{}
- Create a ticketCreate a ticket
Method redisSortedSetTimeline.AddItem
has 7 return statements (exceeds 4 allowed). Open
Open
func (timeline *redisSortedSetTimeline) AddItem(item microsub.Item) (bool, error) {
conn := timeline.pool.Get()
defer conn.Close()
channel := timeline.channel
- Create a ticketCreate a ticket
FIXME found Open
Open
// FIXME: what should we do if one of the items doen't unmarshal?
- Create a ticketCreate a ticket
- Exclude checks