mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-18 10:30:14 +00:00
API GetRepos() return empty list if no active repos exist (#658)
This commit is contained in:
@@ -128,7 +128,7 @@ func GetRepos(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
var active []*model.Repo
|
||||
active := make([]*model.Repo, 0)
|
||||
for _, repo := range repos {
|
||||
if repo.IsActive {
|
||||
active = append(active, repo)
|
||||
|
Reference in New Issue
Block a user