Skip to content

Commit

Permalink
fix: uuid-map return failed error
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyxim committed May 14, 2022
1 parent 5016f52 commit 63917aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils/uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var uuidNamespace, _ = uuid.FromString("00000000-0000-0000-0000-000000000000")
func UUIDMap(str string) (uuid.UUID, error) {
u, err := uuid.FromString(str)
if err != nil {
return uuid.NewV5(uuidNamespace, str), err
return uuid.NewV5(uuidNamespace, str), nil
}
return u, nil
}

0 comments on commit 63917aa

Please sign in to comment.