You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-06 22:15:44 +02:00
Enable gocritic
and don't ignore globally (#3159)
Use `nolint` directives instead. From #2960
This commit is contained in:
@ -117,11 +117,9 @@ func GetRepos(c *gin.Context) {
|
||||
existingRepo.Update(r)
|
||||
existingRepo.IsActive = active[r.ForgeRemoteID].IsActive
|
||||
repos = append(repos, existingRepo)
|
||||
} else {
|
||||
if r.Perm.Admin {
|
||||
// you must be admin to enable the repo
|
||||
repos = append(repos, r)
|
||||
}
|
||||
} else if r.Perm.Admin {
|
||||
// you must be admin to enable the repo
|
||||
repos = append(repos, r)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user