Browse Source

fix(utils/uid/uuid.go): ignore uuid.NewV4() returned error

pull/36/head
Loli 7 years ago committed by GitHub
parent
commit
d57cc986fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      utils/uid/uuid.go

2
utils/uid/uuid.go

@ -6,7 +6,7 @@ import ( @@ -6,7 +6,7 @@ import (
)
func NewId() string {
id := uuid.NewV4()
id, _ := uuid.NewV4()
b64 := base64.URLEncoding.EncodeToString(id.Bytes()[:12])
return b64
}

Loading…
Cancel
Save