From 5fd025cbe33bd41ca502d6414afc5b321a9b22fc Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sat, 14 May 2022 23:45:10 +0800 Subject: [PATCH] fix: uuid-map return failed error --- common/utils/uuid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/utils/uuid.go b/common/utils/uuid.go index fed43eb6..66e176ed 100644 --- a/common/utils/uuid.go +++ b/common/utils/uuid.go @@ -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 }