From 3a1272246f6b6bfa4e9c5b43e4021788342f6fa7 Mon Sep 17 00:00:00 2001 From: William Ballenthin Date: Wed, 10 Nov 2021 13:36:00 -0700 Subject: [PATCH] rules: code consistency --- capa/rules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capa/rules.py b/capa/rules.py index 927bcb4b..f9e8cc26 100644 --- a/capa/rules.py +++ b/capa/rules.py @@ -1057,9 +1057,9 @@ class RuleSet: rules_with_easy_features.add(rule) rules_by_feature[node].add(rule) elif isinstance(node, (ceng.Not)): - return rec(rule, node.child, under_not_statement=not under_not_statement) + rec(rule, node.child, under_not_statement=not under_not_statement) elif isinstance(node, (ceng.Range)): - return rec(rule, node.child, under_not_statement=under_not_statement) + rec(rule, node.child, under_not_statement=under_not_statement) elif isinstance(node, (ceng.And, ceng.Or, ceng.Some)): for child in node.children: rec(rule, child, under_not_statement=under_not_statement)