From fa71eef80766c19b831134108c80edef716a9f99 Mon Sep 17 00:00:00 2001 From: jakedoublev Date: Tue, 25 Jun 2024 08:58:44 -0700 Subject: [PATCH] cleanup of todo comment --- service/policy/unsafe/unsafe.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/service/policy/unsafe/unsafe.go b/service/policy/unsafe/unsafe.go index 1cc77877a..5b5be02be 100644 --- a/service/policy/unsafe/unsafe.go +++ b/service/policy/unsafe/unsafe.go @@ -138,11 +138,6 @@ func (s *UnsafeService) DeleteAttribute(ctx context.Context, req *unsafe.DeleteA return nil, db.StatusifyError(err, db.ErrTextGetRetrievalFailed, slog.String("id", req.GetId())) } - // TODO: move this down into db call - if existing.GetFqn() != req.GetFqn() { - return nil, db.StatusifyError(db.ErrNotFound, db.ErrTextGetRetrievalFailed, slog.String("id", req.GetId()), slog.String("fqn", req.GetFqn())) - } - deleted, err := s.dbClient.UnsafeDeleteAttribute(ctx, existing, req.GetFqn()) if err != nil { return nil, db.StatusifyError(err, db.ErrTextDeletionFailed, slog.String("id", req.GetId()))