summaryrefslogtreecommitdiff
path: root/ale_linters/java
diff options
context:
space:
mode:
authorNiBo <nibocn@gmail.com>2020-05-15 11:19:06 +0800
committerNiBo <nibocn@gmail.com>2020-05-15 11:21:00 +0800
commit3635285c022ebaa0fe3d54ca74cac1207dda555b (patch)
tree944a2443fdf87e9fe80cb8cb9f0f8da77146edef /ale_linters/java
parent3b4193175ed75d099e40aad8d60033ab20b44521 (diff)
downloadale-3635285c022ebaa0fe3d54ca74cac1207dda555b.zip
style(javac): Code formatting
Diffstat (limited to 'ale_linters/java')
-rw-r--r--ale_linters/java/javac.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/java/javac.vim b/ale_linters/java/javac.vim
index e166bea4..928f555f 100644
--- a/ale_linters/java/javac.vim
+++ b/ale_linters/java/javac.vim
@@ -81,9 +81,11 @@ function! ale_linters#java#javac#GetCommand(buffer, import_paths, meta) abort
endif
let l:sourcepath_item = ale#Var(a:buffer, 'java_javac_sourcepath')
+
if !empty(l:sourcepath_item)
for l:sourcepath in l:sourcepath_item
let l:sp_path = ale#path#FindNearestDirectory(a:buffer, l:sourcepath)
+
if !empty(l:sp_path)
call add(l:sp_dirs, l:sp_path)
endif