Merge pull request #716 from sobrinho/master

Fix brakeman handler when there is no output
This commit is contained in:
w0rp authored and w0rp committed 2017-07-01 15:43:41 +01:00
1 parent bb1f413bf3
commit 448600fe4f
2 files changed
+10

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ let g:ale_ruby_brakeman_options =
\ get(g:, 'ale_ruby_brakeman_options', '')
function! ale_linters#ruby#brakeman#Handle(buffer, lines) abort
if len(a:lines) == 0
return []
endif
let l:result = json_decode(join(a:lines, ''))
let l:output = []