Skip to content

Commit 177301c

Browse files
committed
NRL-1114 add comments back
1 parent 8647237 commit 177301c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

layer/nrlf/core/dynamodb/repository.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def search(
225225
pointer_types: Optional[List[str]] = [],
226226
categories: Optional[List[str]] = [],
227227
) -> Iterator[DocumentPointer]:
228+
""""""
228229
logger.log(
229230
LogReference.REPOSITORY020,
230231
nhs_number=nhs_number,

layer/nrlf/core/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def _validate_type_category_mapping(self, model: DocumentReference):
444444
category_id = f"{category_coding.system}|{category_coding.code}"
445445

446446
if type_id not in PointerTypes.list() or category_id not in Categories.list():
447-
return
447+
return # No point mapping to an unexisting/unsupported type/category
448448

449449
if type_id.startswith("https://nicip.nhs.uk|"):
450450
allowed_categories = TYPE_CATEGORIES.get(type_id, set())

0 commit comments

Comments
 (0)