linter, ssssssssshhhhhhhhhhhh please

This commit is contained in:
kim 2025-03-26 20:43:41 +00:00
parent 0721099101
commit e27e2f3e53
2 changed files with 3 additions and 3 deletions
internal/cache/timeline

View file

@ -704,7 +704,7 @@ func (t *StatusTimeline) prepare(
[]*apimodel.Status,
error,
) {
switch {
switch { //nolint:gocritic
case prepareAPI == nil:
panic("nil prepare fn")
}

View file

@ -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
}
}