mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:52:24 -05:00
fix linter hints
This commit is contained in:
parent
015938cdea
commit
28499335ec
1 changed files with 4 additions and 4 deletions
8
internal/cache/timeline/timeline.go
vendored
8
internal/cache/timeline/timeline.go
vendored
|
|
@ -35,8 +35,8 @@ func nextPageParams(
|
|||
) (lo string, hi string) {
|
||||
if order.Ascending() {
|
||||
return nextLo, curHi
|
||||
} else /* i.e. descending */ {
|
||||
return curLo, nextHi //nolint:revive
|
||||
} else /* i.e. descending */ { //nolint:revive
|
||||
return curLo, nextHi
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ func nextPageParams(
|
|||
func toDirection(order paging.Order) structr.Direction {
|
||||
if order.Ascending() {
|
||||
return structr.Asc
|
||||
} else /* i.e. descending */ {
|
||||
return structr.Desc //nolint:revive
|
||||
} else /* i.e. descending */ { //nolint:revive
|
||||
return structr.Desc
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue