We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2198396 commit 895764eCopy full SHA for 895764e
models/u2f.go
@@ -48,7 +48,7 @@ type U2FRegistrationList []*U2FRegistration
48
49
// ToRegistrations will convert all U2FRegistrations to u2f.Registrations
50
func (list U2FRegistrationList) ToRegistrations() []u2f.Registration {
51
- regs := make([]u2f.Registration, len(list))
+ regs := make([]u2f.Registration, 0, len(list))
52
for _, reg := range list {
53
r, err := reg.Parse()
54
if err != nil {
0 commit comments