main: remove impossible condition in matchnodes
Already covered in a condition above.
This commit is contained in:
parent
1b2de81404
commit
adaec2da90
|
@ -756,8 +756,6 @@ class Session(nodes.FSCollector):
|
|||
resultnodes = [] # type: List[Union[nodes.Item, nodes.Collector]]
|
||||
for node in matching:
|
||||
if isinstance(node, nodes.Item):
|
||||
if not names:
|
||||
resultnodes.append(node)
|
||||
continue
|
||||
assert isinstance(node, nodes.Collector)
|
||||
key = (type(node), node.nodeid)
|
||||
|
|
Loading…
Reference in New Issue