diff options
Diffstat (limited to 'ale_linters/javascript/jshint.vim')
-rw-r--r-- | ale_linters/javascript/jshint.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim index f4b66519..24c3875c 100644 --- a/ale_linters/javascript/jshint.vim +++ b/ale_linters/javascript/jshint.vim @@ -8,14 +8,14 @@ let g:ale_javascript_jshint_use_global = \ get(g:, 'ale_javascript_jshint_use_global', 0) function! ale_linters#javascript#jshint#GetExecutable(buffer) abort - if g:ale_javascript_jshint_use_global - return g:ale_javascript_jshint_executable + if ale#Var(a:buffer, 'javascript_jshint_use_global') + return ale#Var(a:buffer, 'javascript_jshint_executable') endif return ale#util#ResolveLocalPath( \ a:buffer, \ 'node_modules/.bin/jshint', - \ g:ale_javascript_jshint_executable + \ ale#Var(a:buffer, 'javascript_jshint_executable') \) endfunction |