Skip to content

Commit

Permalink
Merge pull request gwuhaolin#36 from ipv4sec/master
Browse files Browse the repository at this point in the history
fix(utils/uid/uuid.go): ignore uuid.NewV4() returned error
  • Loading branch information
gwuhaolin authored Sep 26, 2018
2 parents 79a6c48 + d57cc98 commit dec39f7
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 dec39f7

Please sign in to comment.