main: remove unneeded condition in matchnodes

The end result in the `else` branch is the same, but flows naturally.
This commit is contained in:
Ran Benita 2020-08-21 13:50:13 +03:00
parent 5356a0979a
commit 1b2de81404
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ class Session(nodes.FSCollector):
self.trace("matchnodes", matching, names)
self.trace.root.indent += 1
if not matching or not names:
if not names:
result = matching
else:
name = names[0]