Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Aug 4, 2024
1 parent 1f3529c commit 21709d7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cg/services/sample_service/sample_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ def __init__(self, store: Store):
self.store = store

def cancel_sample(self, sample_id: int, user_email: str) -> None:
case_ids: list[str] = self.store.get_case_ids_with_sample(sample_id)
self.store.mark_sample_as_cancelled(sample_id)
self.store.decouple_sample_from_cases(sample_id)
self.store.delete_cases_without_samples(case_ids)
self._add_cancel_comment(sample_id=sample_id, user_email=user_email)

def _add_cancel_comment(self, sample_id: int, user_email: str) -> None:
Expand Down

0 comments on commit 21709d7

Please sign in to comment.