mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(http): do not send null for empty arrays (#1134)
This commit is contained in:
parent
8694b04876
commit
664e5413b6
2 changed files with 4 additions and 3 deletions
|
@ -87,7 +87,8 @@ func (r *IndexerRepo) List(ctx context.Context) ([]domain.Indexer, error) {
|
|||
|
||||
defer rows.Close()
|
||||
|
||||
var indexers []domain.Indexer
|
||||
indexers := make([]domain.Indexer, 0)
|
||||
|
||||
for rows.Next() {
|
||||
var f domain.Indexer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue