diff --git a/internal/cache/timeline/status.go b/internal/cache/timeline/status.go index 3cfafc60f..8d7ba51f5 100644 --- a/internal/cache/timeline/status.go +++ b/internal/cache/timeline/status.go @@ -704,7 +704,7 @@ func (t *StatusTimeline) prepare( []*apimodel.Status, error, ) { - switch { + switch { //nolint:gocritic case prepareAPI == nil: panic("nil prepare fn") } diff --git a/internal/cache/timeline/timeline.go b/internal/cache/timeline/timeline.go index 0165fba71..f194c7432 100644 --- a/internal/cache/timeline/timeline.go +++ b/internal/cache/timeline/timeline.go @@ -36,7 +36,7 @@ func nextPageParams( if order.Ascending() { return nextLo, curHi } else /* i.e. descending */ { - return curLo, nextHi + return curLo, nextHi //nolint:revive } } @@ -45,6 +45,6 @@ func toDirection(order paging.Order) structr.Direction { if order.Ascending() { return structr.Asc } else /* i.e. descending */ { - return structr.Desc + return structr.Desc //nolint:revive } }