mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-01 17:13:30 +08:00
Use explicit scope in the ale core, as advised by vint -s
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
" Description: Contains miscellaneous functions
|
||||
|
||||
function! s:FindWrapperScript() abort
|
||||
for parent in split(&runtimepath, ',')
|
||||
for l:parent in split(&runtimepath, ',')
|
||||
" Expand the path to deal with ~ issues.
|
||||
let path = expand(parent . '/' . 'stdin-wrapper')
|
||||
let l:path = expand(l:parent . '/' . 'stdin-wrapper')
|
||||
|
||||
if filereadable(path)
|
||||
if filereadable(l:path)
|
||||
if has('win32')
|
||||
return path . '.exe'
|
||||
return l:path . '.exe'
|
||||
endif
|
||||
|
||||
return path
|
||||
return l:path
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user