diff options
author | Gonzalo Quero <gquero@drwuk.com> | 2020-11-23 10:21:09 +0000 |
---|---|---|
committer | Gonzalo Quero <gquero@drwuk.com> | 2020-11-23 10:21:09 +0000 |
commit | 7e9d4fbfc820ae4198b07b204295fc3acd391209 (patch) | |
tree | 2f79b153cc581ae935f9e158fe70a2af23f6f581 /ale_linters/elixir | |
parent | 491ceacb64f7be6c4e36fd6586af22adfd6a309e (diff) | |
download | ale-7e9d4fbfc820ae4198b07b204295fc3acd391209.zip |
refactor: Move test to the right file
Diffstat (limited to 'ale_linters/elixir')
-rw-r--r-- | ale_linters/elixir/credo.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/elixir/credo.vim b/ale_linters/elixir/credo.vim index 15ebefb5..892d47b9 100644 --- a/ale_linters/elixir/credo.vim +++ b/ale_linters/elixir/credo.vim @@ -48,11 +48,11 @@ endfunction function! ale_linters#elixir#credo#GetConfigFile() abort let l:config_file = get(g:, 'ale_elixir_credo_config_file', '') - if len(l:config_file) == 0 + if empty(l:config_file) return '' - else - return ' --config-file ' . l:config_file endif + + return ' --config-file ' . l:config_file endfunction function! ale_linters#elixir#credo#GetCommand(buffer) abort |