remove redundant code block

This commit is contained in:
Yacine Elhamer
2023-07-20 11:27:07 +01:00
parent 16eab6b5e5
commit a675c4c7a1

View File

@@ -52,8 +52,6 @@ def assert_never(value) -> NoReturn:
def get_format_from_report(sample: Path) -> str:
with open(sample.name, "rb") as f:
report = json.load(f)
report = json.load(sample.open())
if "CAPE" in report:
return FORMAT_CAPE