diff --git a/pkg/errs/relation.go b/pkg/errs/relation.go index 5d87ab59e..28f161dc4 100644 --- a/pkg/errs/relation.go +++ b/pkg/errs/relation.go @@ -5,7 +5,6 @@ var Relation = &relation{m: make(map[int]map[int]struct{})} func init() { Relation.Add(RecordNotFoundError, UserIDNotFoundError) Relation.Add(RecordNotFoundError, GroupIDNotFoundError) - Relation.Add(DuplicateKeyError, UserIDExisted) Relation.Add(DuplicateKeyError, GroupIDExisted) }