provider/pythonx: Detect: only return valid versions

The `check` return value of `s:check_version` was not being used, and it
was returned always.
This commit is contained in:
Daniel Hahler
2015-05-02 21:58:54 +02:00
committed by Florian Walch
parent 12f7229e7e
commit 3b0ec6599c

View File

@@ -25,7 +25,9 @@ function! provider#pythonx#Detect(ver) abort
let [check, err, ver] = s:check_interpreter(prog, a:ver, skip)
if check
let [check, err] = s:check_version(prog, ver, skip)
return [prog, err]
if check
return [prog, err]
endif
endif
endfor