diff options
author | Jeffrey Lau <who.else.at.jlau.tk> | 2020-04-18 17:25:15 +0800 |
---|---|---|
committer | Jeffrey Lau <who.else.at.jlau.tk> | 2020-04-18 19:51:31 +0800 |
commit | e0181f88320e7cf47aa117c843523a4d6c22c2de (patch) | |
tree | 8d4ddaa8867554c0cde7690e6866d5d4677fbabb /ale_linters/scala | |
parent | 64b9a2708d1b5c2ce2c04eee1f64508c75b7bbb4 (diff) | |
download | ale-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.vim | 2 |
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 |