render: fix handling of file-scope rules

This commit is contained in:
William Ballenthin
2020-06-28 12:05:15 -06:00
parent 7c51fd4890
commit c9ab5f9dda

View File

@@ -174,7 +174,6 @@ def render_vverbose(doc):
ostream.writeln(tabulate.tabulate(rows, tablefmt='plain'))
if rule['meta']['scope'] == capa.rules.FILE_SCOPE:
matches = list(doc[rule['meta']['name']]['matches'].values())
if len(matches) != 1: