summaryrefslogtreecommitdiff
path: root/ale_linters/scala
diff options
context:
space:
mode:
authorJeffrey Lau <who.else.at.jlau.tk>2020-04-18 17:25:15 +0800
committerJeffrey Lau <who.else.at.jlau.tk>2020-04-18 19:51:31 +0800
commite0181f88320e7cf47aa117c843523a4d6c22c2de (patch)
tree8d4ddaa8867554c0cde7690e6866d5d4677fbabb /ale_linters/scala
parent64b9a2708d1b5c2ce2c04eee1f64508c75b7bbb4 (diff)
downloadale-e0181f88320e7cf47aa117c843523a4d6c22c2de.zip
linter/scala/metals: Fix return value of GetProjectRoot()
It was returning 0 when it should be returning an empty string. The 'AssertEqual' in the ale image is from an old version so it does not check the types of the arguments. This is already fixed in https://github.com/junegunn/vader.vim/commit/427fe19104c15066e4c1d5d385076e8e07a0dee8 Closes #3120
Diffstat (limited to 'ale_linters/scala')
-rw-r--r--ale_linters/scala/metals.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/ale_linters/scala/metals.vim b/ale_linters/scala/metals.vim
index f78c7119..da9e855d 100644
--- a/ale_linters/scala/metals.vim
+++ b/ale_linters/scala/metals.vim
@@ -32,6 +32,8 @@ function! ale_linters#scala#metals#GetProjectRoot(buffer) abort
\)
endif
endfor
+
+ return ''
endfunction
function! ale_linters#scala#metals#GetCommand(buffer) abort