rather than compare to '' we use the vimscript emtpy function as else the check does not work

This commit is contained in:
Gilles Ruppert 2012-02-11 21:45:30 +01:00
parent c2c0058973
commit be1091f251

View File

@ -14,7 +14,7 @@ endif
function! SyntaxCheckers_javascript_GetLocList()
" node-jshint uses .jshintrc as config unless --config arg is present
let args = g:syntastic_javascript_jshint_conf != '' ? ' --config ' . g:syntastic_javascript_jshint_conf : ''
let args = !empty(g:syntastic_javascript_jshint_conf) ? ' --config ' . g:syntastic_javascript_jshint_conf : ''
let makeprg = 'jshint ' . shellescape(expand("%")) . args
let errorformat = '%ELine %l:%c,%Z\\s%#Reason: %m,%C%.%#,%f: line %l\, col %c\, %m,%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'defaults': {'bufnr': bufnr('')} })