From 08e4236dc790c5194f38ac767e30945c1b02cc2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 13 Aug 2025 22:00:35 -0400 Subject: [PATCH] remove bare return --- models/organization/team_list.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/organization/team_list.go b/models/organization/team_list.go index 0abdf6422c..a7e5e85051 100644 --- a/models/organization/team_list.go +++ b/models/organization/team_list.go @@ -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) {