mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user