mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-19 23:09:58 +08:00
Merge pull request #3547 from hsanson/3546-fix-E928-when-using-javac-linter-on-non-maven-projects
Fix 3546 - check empty executable string.
This commit is contained in:
@@ -25,7 +25,7 @@ function! ale#maven#FindExecutable(buffer) abort
|
|||||||
let l:wrapper_cmd = has('unix') ? 'mvnw' : 'mvnw.cmd'
|
let l:wrapper_cmd = has('unix') ? 'mvnw' : 'mvnw.cmd'
|
||||||
let l:wrapper_path = ale#path#FindNearestFile(a:buffer, l:wrapper_cmd)
|
let l:wrapper_path = ale#path#FindNearestFile(a:buffer, l:wrapper_cmd)
|
||||||
|
|
||||||
if executable(l:wrapper_path)
|
if !empty(l:wrapper_path) && executable(l:wrapper_path)
|
||||||
return l:wrapper_path
|
return l:wrapper_path
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user