mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	fix u2f registrationlist ToRegistrations() method (#6980)
This commit is contained in:
		
				
					committed by
					
						
						zeripath
					
				
			
			
				
	
			
			
			
						parent
						
							c385dcc26b
						
					
				
				
					commit
					8de76b6e64
				
			@@ -48,7 +48,7 @@ type U2FRegistrationList []*U2FRegistration
 | 
			
		||||
 | 
			
		||||
// ToRegistrations will convert all U2FRegistrations to u2f.Registrations
 | 
			
		||||
func (list U2FRegistrationList) ToRegistrations() []u2f.Registration {
 | 
			
		||||
	regs := make([]u2f.Registration, len(list))
 | 
			
		||||
	regs := make([]u2f.Registration, 0, len(list))
 | 
			
		||||
	for _, reg := range list {
 | 
			
		||||
		r, err := reg.Parse()
 | 
			
		||||
		if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user