From 65a4960ce9d25672878f8b6a30136a8da0733ce6 Mon Sep 17 00:00:00 2001 From: Michael Hunhoff Date: Fri, 26 Jun 2020 14:44:52 -0600 Subject: [PATCH] code changes --- capa/ida/explorer/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capa/ida/explorer/model.py b/capa/ida/explorer/model.py index dd062261..06b64e86 100644 --- a/capa/ida/explorer/model.py +++ b/capa/ida/explorer/model.py @@ -324,8 +324,8 @@ class CapaExplorerDataModel(QtCore.QAbstractItemModel): parent2 = CapaExplorerDefaultItem(parent, '%d or more' % result.statement.count) elif not isinstance(result.statement, (capa.features.Feature, capa.engine.Range, capa.engine.Regex)): # when rending a structural node (and/or/not) then we only care about the node name. - if not len(list(filter(lambda c: bool(c), result.children))): - # ignore empty structural expressions (e.g. not) + if not list(filter(lambda c: bool(c), result.children)): + # ignore structural expressions that do not have any successful children (e.g. not) return parent2 = CapaExplorerDefaultItem(parent, result.statement.name.lower()) else: