We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee52d2d commit 753b7d2Copy full SHA for 753b7d2
models/org_team.go
@@ -265,6 +265,10 @@ func (t *Team) AddRepository(repo *Repository) (err error) {
265
}
266
267
func (t *Team) removeRepository(e Engine, repo *Repository, recalculate bool) (err error) {
268
+ if t.IncludesAllRepositories {
269
+ return nil
270
+ }
271
+
272
if err = removeTeamRepo(e, t.ID, repo.ID); err != nil {
273
return err
274
@@ -312,10 +316,6 @@ func (t *Team) RemoveRepository(repoID int64) error {
312
316
return nil
313
317
314
318
315
- if t.IncludesAllRepositories {
- return nil
- }
-
319
repo, err := GetRepositoryByID(repoID)
320
if err != nil {
321
0 commit comments