mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 11:02:24 -05:00
linter, ssssssssshhhhhhhhhhhh please
This commit is contained in:
parent
eadd5a6f0f
commit
015938cdea
2 changed files with 3 additions and 3 deletions
2
internal/cache/timeline/status.go
vendored
2
internal/cache/timeline/status.go
vendored
|
|
@ -704,7 +704,7 @@ func (t *StatusTimeline) prepare(
|
||||||
[]*apimodel.Status,
|
[]*apimodel.Status,
|
||||||
error,
|
error,
|
||||||
) {
|
) {
|
||||||
switch {
|
switch { //nolint:gocritic
|
||||||
case prepareAPI == nil:
|
case prepareAPI == nil:
|
||||||
panic("nil prepare fn")
|
panic("nil prepare fn")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
internal/cache/timeline/timeline.go
vendored
4
internal/cache/timeline/timeline.go
vendored
|
|
@ -36,7 +36,7 @@ func nextPageParams(
|
||||||
if order.Ascending() {
|
if order.Ascending() {
|
||||||
return nextLo, curHi
|
return nextLo, curHi
|
||||||
} else /* i.e. descending */ {
|
} 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() {
|
if order.Ascending() {
|
||||||
return structr.Asc
|
return structr.Asc
|
||||||
} else /* i.e. descending */ {
|
} else /* i.e. descending */ {
|
||||||
return structr.Desc
|
return structr.Desc //nolint:revive
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue