main: remove impossible condition in matchnodes

Already covered in a condition above.
This commit is contained in:
Ran Benita 2020-08-21 13:53:05 +03:00
parent 1b2de81404
commit adaec2da90
1 changed files with 0 additions and 2 deletions

View File

@ -756,8 +756,6 @@ class Session(nodes.FSCollector):
resultnodes = [] # type: List[Union[nodes.Item, nodes.Collector]] resultnodes = [] # type: List[Union[nodes.Item, nodes.Collector]]
for node in matching: for node in matching:
if isinstance(node, nodes.Item): if isinstance(node, nodes.Item):
if not names:
resultnodes.append(node)
continue continue
assert isinstance(node, nodes.Collector) assert isinstance(node, nodes.Collector)
key = (type(node), node.nodeid) key = (type(node), node.nodeid)