mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
remove redundant code block
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user