Skip to content

Commit

Permalink
cleanup of todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Jun 25, 2024
1 parent ddbb139 commit fa71eef
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions service/policy/unsafe/unsafe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit fa71eef

Please sign in to comment.