Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedoublev committed Jun 21, 2024
1 parent 151bf0d commit 66d80f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions service/policy/unsafe/unsafe.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ func (s *UnsafeService) DeleteNamespace(ctx context.Context, req *unsafe.DeleteN
return nil, db.StatusifyError(err, db.ErrTextGetRetrievalFailed, slog.String("id", req.GetId()))
}

// TODO: move this down into db call
// validate the provided namespace FQN is a match for the provided namespace ID
if existing.GetFqn() != req.GetFqn() {
return nil, db.StatusifyError(db.ErrNotFound, db.ErrTextGetRetrievalFailed, slog.String("id", req.GetId()), slog.String("fqn", req.GetFqn()))
Expand Down Expand Up @@ -143,6 +144,7 @@ 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()))
}
Expand Down

0 comments on commit 66d80f4

Please sign in to comment.