An or is not needed

This comparison is useless, because the case where the module_path is None is already looked at in a previous if
This commit is contained in:
Dave Halter
2018-02-01 00:27:42 +01:00
parent 79ced22a37
commit 37bd03c3d5

View File

@@ -299,7 +299,7 @@ def goto(mode="goto", no_output=False):
# well.
lst.append(dict(text=PythonToVimStr(d.description)))
else:
lst.append(dict(filename=PythonToVimStr(d.module_path or ''),
lst.append(dict(filename=PythonToVimStr(d.module_path),
lnum=d.line, col=d.column + 1,
text=PythonToVimStr(d.description)))
vim_eval('setqflist(%s)' % repr(lst))