fix: uuid-map return failed error
This commit is contained in:
parent
5016f529af
commit
63917aa020
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ var uuidNamespace, _ = uuid.FromString("00000000-0000-0000-0000-000000000000")
|
||||||
func UUIDMap(str string) (uuid.UUID, error) {
|
func UUIDMap(str string) (uuid.UUID, error) {
|
||||||
u, err := uuid.FromString(str)
|
u, err := uuid.FromString(str)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return uuid.NewV5(uuidNamespace, str), err
|
return uuid.NewV5(uuidNamespace, str), nil
|
||||||
}
|
}
|
||||||
return u, nil
|
return u, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue