mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 03:41:01 +00:00
API GetRepos() return empty list if no active repos exist (#658)
This commit is contained in:
parent
132d3567f4
commit
abd3d1d5c3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue