Ver Fonte

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
deepsource-autofix[bot] há 2 semanas atrás
pai
commit
1a285ca5ce
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      internal/database/org.go

+ 2 - 2
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
 }