mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Enable gocritic equalFold and fix issues (#34952)
				
					
				
			Continuation of https://github.com/go-gitea/gitea/pull/34678. --------- Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
		| @@ -208,7 +208,7 @@ func OrgAssignment(opts OrgAssignmentOptions) func(ctx *Context) { | ||||
| 		if len(teamName) > 0 { | ||||
| 			teamExists := false | ||||
| 			for _, team := range ctx.Org.Teams { | ||||
| 				if team.LowerName == strings.ToLower(teamName) { | ||||
| 				if strings.EqualFold(team.LowerName, teamName) { | ||||
| 					teamExists = true | ||||
| 					ctx.Org.Team = team | ||||
| 					ctx.Org.IsTeamMember = true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user