mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Fix prospector empty string error
Prospector linter is raising error when no warnings are present in file (#1680). Copied fix from #779.
This commit is contained in:
@@ -23,6 +23,10 @@ endfunction
|
||||
function! ale_linters#python#prospector#Handle(buffer, lines) abort
|
||||
let l:output = []
|
||||
|
||||
if empty(a:lines)
|
||||
return []
|
||||
endif
|
||||
|
||||
let l:prospector_error = json_decode(join(a:lines, ''))
|
||||
|
||||
for l:error in l:prospector_error.messages
|
||||
|
||||
Reference in New Issue
Block a user