Browse Source

linter, ssssssssshhhhhhhhhhhh please

pull/3941/head
kim 12 months ago
parent
commit
e27e2f3e53
  1. 2
      internal/cache/timeline/status.go
  2. 4
      internal/cache/timeline/timeline.go

2
internal/cache/timeline/status.go vendored

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

4
internal/cache/timeline/timeline.go vendored

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

Loading…
Cancel
Save