summaryrefslogtreecommitdiff
path: root/ale_linters/typescript
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-19 10:26:03 +0100
committerw0rp <devw0rp@gmail.com>2017-07-19 10:26:03 +0100
commit0b50ebb0f0116f38782fed4aebf25588433352a2 (patch)
tree9345dd9b23177fc999ef9eb1b4ab31e7e4217f95 /ale_linters/typescript
parent235fc90e226ccc0430b9faa0cd3a226d9be6f31c (diff)
downloadale-0b50ebb0f0116f38782fed4aebf25588433352a2.zip
Fix #779 - Handle empty output for tslint
Diffstat (limited to 'ale_linters/typescript')
-rw-r--r--ale_linters/typescript/tslint.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ale_linters/typescript/tslint.vim b/ale_linters/typescript/tslint.vim
index 43ece555..e9b31644 100644
--- a/ale_linters/typescript/tslint.vim
+++ b/ale_linters/typescript/tslint.vim
@@ -14,6 +14,10 @@ endfunction
function! ale_linters#typescript#tslint#Handle(buffer, lines) abort
let l:output = []
+ if empty(a:lines)
+ return []
+ endif
+
for l:error in json_decode(join(a:lines, ''))
if ale#path#IsBufferPath(a:buffer, l:error.name)
call add(l:output, {