mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
get_format_from_report(): use strings instead of literals
Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
This commit is contained in:
@@ -57,7 +57,7 @@ def assert_never(value) -> NoReturn:
|
||||
def get_format_from_report(sample: str) -> str:
|
||||
with open(sample, "rb") as f:
|
||||
report = json.load(f)
|
||||
if FORMAT_CAPE.upper() in report.keys():
|
||||
if "CAPE" in report.keys():
|
||||
return FORMAT_CAPE
|
||||
return FORMAT_UNKNOWN
|
||||
|
||||
|
||||
Reference in New Issue
Block a user