1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-25 19:58:36 +00:00

Fix API response for swagger spec (#35029)

Co-authored-by: Scion <scion@studiowhy.net>
This commit is contained in:
wxiaoguang
2025-07-10 15:27:34 +08:00
committed by GitHub
parent e5c1b8b632
commit e13deb7a16
3 changed files with 5 additions and 4 deletions

View File

@@ -245,7 +245,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, permissionInR
RepoTransfer: transfer,
Topics: util.SliceNilAsEmpty(repo.Topics),
ObjectFormatName: repo.ObjectFormatName,
Licenses: repoLicenses.StringList(),
Licenses: util.SliceNilAsEmpty(repoLicenses.StringList()),
}
}