Skip to content

Commit

Permalink
fix u2f registrationlist ToRegistrations() method (#6980) (#6982)
Browse files Browse the repository at this point in the history
  • Loading branch information
daviian authored and techknowlogick committed May 18, 2019
1 parent 2198396 commit 895764e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/u2f.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 895764e

Please sign in to comment.