From c13eb87ae73ac1ba78e22fd3a6fd547038cb23cb Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 1 Feb 2024 12:45:02 +0000 Subject: stop paged endpoints returning null for empty items (#2597) --- internal/processing/common/account.go.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'internal/processing/common/account.go.go') diff --git a/internal/processing/common/account.go.go b/internal/processing/common/account.go.go index c4436e77e..f4bd06e76 100644 --- a/internal/processing/common/account.go.go +++ b/internal/processing/common/account.go.go @@ -201,9 +201,6 @@ func (p *Processor) GetVisibleAPIAccountsPaged( length int, ) []interface{} { accounts := p.getVisibleAPIAccounts(ctx, 3, requester, next, length) - if len(accounts) == 0 { - return nil - } items := make([]interface{}, len(accounts)) for i, account := range accounts { items[i] = account -- cgit v1.2.3