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
pull/3545/head
Karan Saraswat 2024-08-29 19:34:10 +00:00 committed by Harness
parent d50945fd60
commit 57368eba55
1 changed files with 1 additions and 1 deletions

View File

@ -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)