diff --git a/capa/helpers.py b/capa/helpers.py index d11a44cf..f7978b54 100644 --- a/capa/helpers.py +++ b/capa/helpers.py @@ -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