Clean up the mix format command and tests

This commit is contained in:
w0rp
2018-03-18 17:40:34 +00:00
parent 92612a9eab
commit 440502dc93
2 changed files with 9 additions and 3 deletions

View File

@@ -12,7 +12,9 @@ function! ale#fixers#mix_format#GetCommand(buffer) abort
let l:executable = ale#Escape(ale#fixers#mix_format#GetExecutable(a:buffer))
let l:options = ale#Var(a:buffer, 'elixir_mix_format_options')
return l:executable . ' format ' . l:options . ' %t'
return l:executable . ' format'
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' %t'
endfunction
function! ale#fixers#mix_format#Fix(buffer) abort