From 29746d492ef05a527c13cd1f835aaa9153eb8ff4 Mon Sep 17 00:00:00 2001 From: Gabriel Sobrinho Date: Sat, 1 Jul 2017 11:18:21 -0300 Subject: Fix brakeman handler when there is no output --- ale_linters/ruby/brakeman.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ale_linters') diff --git a/ale_linters/ruby/brakeman.vim b/ale_linters/ruby/brakeman.vim index fa5617df..5ea531f1 100644 --- a/ale_linters/ruby/brakeman.vim +++ b/ale_linters/ruby/brakeman.vim @@ -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 = [] -- cgit v1.2.3