adjust comment about evidence type

This commit is contained in:
Daniel Roth 2026-06-02 14:32:13 +00:00
parent 1a1804399e
commit 223c1a259b

View file

@ -40,11 +40,14 @@ _CORE_FILE_TO_FILE_TYPE: dict[CoreFiles, str] = {
def get_core_file_type(
filename: str, evidence_category: Optional[str] = None
) -> Optional[CoreFiles]:
if evidence_category is not None and evidence_category.lower() == "mcs compliance certificate":
# Identify MCS certificate and design doc using evidence category as the names are possibly unreliable.
# We might change to always use evidence category, but needs more investigation
if (
evidence_category is not None
and evidence_category.lower() == "mcs compliance certificate"
):
return CoreFiles.MCS_CERTIFICATE
# Identify retrofit design doc using evidence category as the name is possibly unreliable.
# We might change to always use evidence category, but needs more investigation
if evidence_category is not None and evidence_category.lower() == "retrofit design":
return CoreFiles.RETROFIT_DESIGN_DOC