From 663bf4fbb04e97390bd266e223b02516ccc84bab Mon Sep 17 00:00:00 2001 From: Skyxim Date: Sat, 7 May 2022 12:53:13 +0800 Subject: [PATCH] fix: remove misjudgment --- common/utils/uuid.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/utils/uuid.go b/common/utils/uuid.go index 72f7ce75..fed43eb6 100644 --- a/common/utils/uuid.go +++ b/common/utils/uuid.go @@ -10,10 +10,6 @@ var uuidNamespace, _ = uuid.FromString("00000000-0000-0000-0000-000000000000") func UUIDMap(str string) (uuid.UUID, error) { u, err := uuid.FromString(str) if err != nil { - if err != nil { - return uuid.UUID{}, err - } - return uuid.NewV5(uuidNamespace, str), err } return u, nil