mirror of
https://github.com/harness/drone.git
synced 2025-05-05 15:32:56 +00:00
fix: [CODE-2316]: Send empty list in case of no repos present in space (#2613)
* fix: [CODE-2316]: Send empty list in case of no repos present in space
This commit is contained in:
parent
d50945fd60
commit
57368eba55
@ -78,7 +78,7 @@ func (c *Controller) ListRepositoriesNoAuth(
|
||||
return nil, 0, err
|
||||
}
|
||||
|
||||
var reposOut []*repoCtrl.RepositoryOutput
|
||||
reposOut := []*repoCtrl.RepositoryOutput{}
|
||||
for _, repo := range repos {
|
||||
// backfill URLs
|
||||
repo.GitURL = c.urlProvider.GenerateGITCloneURL(ctx, repo.Path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user