mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Enable linter [rule.modifies-value-receiver] and refactor RoleDescriptor (#18093)
This commit is contained in:
		@@ -123,8 +123,7 @@ const (
 | 
			
		||||
 | 
			
		||||
// WithRole enable a specific tag on the RoleDescriptor.
 | 
			
		||||
func (rd RoleDescriptor) WithRole(role RoleDescriptor) RoleDescriptor {
 | 
			
		||||
	rd |= (1 << role)
 | 
			
		||||
	return rd
 | 
			
		||||
	return rd | (1 << role)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func stringToRoleDescriptor(role string) RoleDescriptor {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user