mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-04 05:45:23 +02:00
remove bare return
This commit is contained in:
parent
923e84d4e5
commit
08e4236dc7
@ -128,14 +128,13 @@ func GetUserRepoTeams(ctx context.Context, orgID, userID, repoID int64) (teams T
|
||||
|
||||
// GetUserGroupTeams returns teams in a group that a user has access to
|
||||
func GetUserGroupTeams(ctx context.Context, groupID, userID int64) (teams TeamList, err error) {
|
||||
err = db.GetEngine(ctx).
|
||||
return teams, db.GetEngine(ctx).
|
||||
Where("`repo_group_team`.group_id = ?", groupID).
|
||||
Join("INNER", "repo_group_team", "`repo_group_team`.team_id = `team`.id").
|
||||
Join("INNER", "team_user", "`team_user`.team_id = `team`.id").
|
||||
And("`team_user`.uid = ?", userID).
|
||||
Asc("`team`.name").
|
||||
Find(&teams)
|
||||
return
|
||||
}
|
||||
|
||||
func GetTeamsByOrgIDs(ctx context.Context, orgIDs []int64) (TeamList, error) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user