fix: remove misjudgment

This commit is contained in:
gVisor bot 2022-05-07 12:53:13 +08:00
parent 83b64eb86e
commit e16bc3fa53

View file

@ -10,10 +10,6 @@ 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 {
if err != nil {
return uuid.UUID{}, err
}
return uuid.NewV5(uuidNamespace, str), err return uuid.NewV5(uuidNamespace, str), err
} }
return u, nil return u, nil