From 37bd03c3d575be6126369937ef242a259088a137 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 1 Feb 2018 00:27:42 +0100 Subject: [PATCH] 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 --- pythonx/jedi_vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonx/jedi_vim.py b/pythonx/jedi_vim.py index 4be834e..7edc8ac 100644 --- a/pythonx/jedi_vim.py +++ b/pythonx/jedi_vim.py @@ -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))