Skip to content

Commit 8de76b6

Browse files
daviianzeripath
authored andcommitted
fix u2f registrationlist ToRegistrations() method (#6980)
1 parent c385dcc commit 8de76b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/u2f.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type U2FRegistrationList []*U2FRegistration
4848

4949
// ToRegistrations will convert all U2FRegistrations to u2f.Registrations
5050
func (list U2FRegistrationList) ToRegistrations() []u2f.Registration {
51-
regs := make([]u2f.Registration, len(list))
51+
regs := make([]u2f.Registration, 0, len(list))
5252
for _, reg := range list {
5353
r, err := reg.Parse()
5454
if err != nil {

0 commit comments

Comments
 (0)