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
This commit is contained in:
deepsource-autofix[bot]
2026-01-24 00:52:55 +00:00
committed by GitHub
parent b74ce2f6bc
commit 1a285ca5ce

View File

@@ -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
}