mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
runtime/autoload/provider/python{,3}.vim: fix E168
Do not use `finish` inside of `provider#python{,3}#Call`, but `return`.
This commit is contained in:
@@ -46,7 +46,7 @@ function! provider#python#Call(method, args)
|
|||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echomsg v:exception
|
echomsg v:exception
|
||||||
echohl None
|
echohl None
|
||||||
finish
|
return
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
return call(s:rpcrequest, insert(insert(a:args, 'python_'.a:method), s:host))
|
return call(s:rpcrequest, insert(insert(a:args, 'python_'.a:method), s:host))
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ function! provider#python3#Call(method, args)
|
|||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echomsg v:exception
|
echomsg v:exception
|
||||||
echohl None
|
echohl None
|
||||||
finish
|
return
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
return call(s:rpcrequest, insert(insert(a:args, 'python_'.a:method), s:host))
|
return call(s:rpcrequest, insert(insert(a:args, 'python_'.a:method), s:host))
|
||||||
|
|||||||
Reference in New Issue
Block a user