Remove a redundant check for tsserver

This commit is contained in:
w0rp 2017-07-26 10:44:07 +01:00
parent e6f527f954
commit cfdb41f4d2

View File

@ -617,7 +617,7 @@ endfunction
"
" Returns 1 if the linter was successfully run.
function! s:RunLinter(buffer, linter) abort
if !empty(a:linter.lsp) || a:linter.lsp ==# 'tsserver'
if !empty(a:linter.lsp)
return s:CheckWithLSP(a:buffer, a:linter)
else
let l:executable = ale#linter#GetExecutable(a:buffer, a:linter)