mirror of
https://github.com/go-gitea/gitea
synced 2024-11-07 09:15:53 +01:00
parent
21983965d0
commit
895764e7f5
@ -48,7 +48,7 @@ type U2FRegistrationList []*U2FRegistration
|
|||||||
|
|
||||||
// ToRegistrations will convert all U2FRegistrations to u2f.Registrations
|
// ToRegistrations will convert all U2FRegistrations to u2f.Registrations
|
||||||
func (list U2FRegistrationList) ToRegistrations() []u2f.Registration {
|
func (list U2FRegistrationList) ToRegistrations() []u2f.Registration {
|
||||||
regs := make([]u2f.Registration, len(list))
|
regs := make([]u2f.Registration, 0, len(list))
|
||||||
for _, reg := range list {
|
for _, reg := range list {
|
||||||
r, err := reg.Parse()
|
r, err := reg.Parse()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user