Skip to content

Commit

Permalink
fix(utils/uid/uuid.go): ignore uuid.NewV4() returned error
Browse files Browse the repository at this point in the history
  • Loading branch information
ipv4sec authored Jul 11, 2018
1 parent 79a6c48 commit d57cc98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/uid/uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

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

0 comments on commit d57cc98

Please sign in to comment.