mirror of
https://github.com/gogs/gogs.git
synced 2026-02-28 01:00:57 +01:00
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:
committed by
GitHub
parent
b74ce2f6bc
commit
1a285ca5ce
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user