Apply suggestions from code review: use is_ for booleans

Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com>
This commit is contained in:
Yacine Elhamer
2023-06-23 13:27:20 +01:00
committed by GitHub
parent 585876d6af
commit 0442b8c1e1

View File

@@ -115,7 +115,7 @@ def main(argv=None):
logger.error("%s", str(e))
return -1
dynamic = (args.process) or (args.format == "cape") or (os.path.splitext(args.sample)[1] in ("json", "json_"))
is_dynamic = (args.process) or (args.format == "cape") or (os.path.splitext(args.sample)[1] in ("json", "json_"))
if (args.format == "freeze") or (
args.format == capa.features.common.FORMAT_AUTO and capa.features.freeze.is_freeze(taste)
):