mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-04-26 02:54:43 +00:00
remove the zero length check, as lo, hi values might still be set
This commit is contained in:
parent
fbd6d51b81
commit
40b95f7a5a
1 changed files with 0 additions and 5 deletions
|
@ -156,11 +156,6 @@ func (p *Processor) getStatusTimeline(
|
|||
return nil, gtserror.WrapWithCode(http.StatusInternalServerError, err)
|
||||
}
|
||||
|
||||
// Check for empty response.
|
||||
if len(apiStatuses) == 0 {
|
||||
return paging.EmptyResponse(), nil
|
||||
}
|
||||
|
||||
// Package returned API statuses as pageable response.
|
||||
return paging.PackageResponse(paging.ResponseParams{
|
||||
Items: xslices.ToAny(apiStatuses),
|
||||
|
|
Loading…
Reference in a new issue