Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 9d7b358

Browse files
committed
always return list
1 parent a5024b1 commit 9d7b358

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

syntax_checkers/elixir/elixir.vim

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ let g:loaded_syntastic_elixir_elixir_checker=1
1616

1717
let s:syntastic_elixir_compile_command = 'elixir'
1818

19-
if filereadable("mix.exs")
20-
let s:syntastic_elixir_compile_command = "mix compile"
19+
if filereadable('mix.exs')
20+
let s:syntastic_elixir_compile_command = 'mix compile'
2121
endif
2222

2323
function! SyntaxCheckers_elixir_elixir_IsAvailable()
@@ -32,11 +32,7 @@ function! SyntaxCheckers_elixir_elixir_GetLocList()
3232
let makeprg = syntastic#makeprg#build({ 'exe': s:syntastic_elixir_compile_command })
3333
let errorformat = '** %*[^\ ] %f:%l: %m'
3434

35-
let elixir_results = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
36-
37-
if !empty(elixir_results)
38-
return elixir_results
39-
endif
35+
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
4036
endfunction
4137

4238
call g:SyntasticRegistry.CreateAndRegisterChecker({

0 commit comments

Comments
 (0)