JSCS checker bug fix: minor fallouts from 751afea.

This commit is contained in:
LCD 47 2016-01-04 08:19:32 +02:00
parent 91814d6723
commit 3280220e6c
2 changed files with 8 additions and 3 deletions

View File

@ -157,9 +157,14 @@ function! syntastic#preprocess#iconv(errors) abort " {{{2
endfunction " }}}2
function! syntastic#preprocess#jscs(errors) abort " {{{2
let out = []
let json = s:_decode_JSON(join(a:errors, ''))
let errs = join(a:errors, '')
if errs ==# ''
return []
endif
let json = s:_decode_JSON(errs)
let out = []
if type(json) == type({})
for fname in keys(json)
if type(json[fname]) == type([])

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.7.0-67'
let g:_SYNTASTIC_VERSION = '3.7.0-68'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1