From 1a285ca5ce7b05d956943f38a2eb30d6698905b9 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 24 Jan 2026 00:52:55 +0000 Subject: [PATCH] style: format code with Go fmt and Gofumpt This commit fixes the style issues introduced in b74ce2f according to the output from Go fmt and Gofumpt. Details: https://github.com/gogs/gogs/pull/8105 --- internal/database/org.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/database/org.go b/internal/database/org.go index 0c2f4ee91..5cc995836 100644 --- a/internal/database/org.go +++ b/internal/database/org.go @@ -443,11 +443,11 @@ func (org *User) getUserTeams(tx *gorm.DB, userID int64, cols ...string) ([]*Tea query := tx.Table("team"). Joins("INNER JOIN team_user ON team_user.team_id = team.id"). Where("team_user.org_id = ? AND team_user.uid = ?", org.ID, userID) - + if len(cols) > 0 { query = query.Select(cols) } - + return teams, query.Find(&teams).Error }