summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorMiklós Tusz <mdtusz@gmail.com>2018-10-11 11:29:09 -0400
committerMiklós Tusz <mdtusz@gmail.com>2018-12-21 20:07:14 -0800
commit4bf260e9535534021e51e4c7f50009430488d429 (patch)
tree9c8cdbf8a30585f683387eb070e27f969beda931 /autoload
parent63e76875d5b4792ed4b29f7f58587ca495dcd9d5 (diff)
downloadale-4bf260e9535534021e51e4c7f50009430488d429.zip
Remove unnecessary exe check for black
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fixers/black.vim6
1 files changed, 1 insertions, 5 deletions
diff --git a/autoload/ale/fixers/black.vim b/autoload/ale/fixers/black.vim
index 7523bcae..35b6a734 100644
--- a/autoload/ale/fixers/black.vim
+++ b/autoload/ale/fixers/black.vim
@@ -18,10 +18,6 @@ endfunction
function! ale#fixers#black#Fix(buffer) abort
let l:executable = ale#fixers#black#GetExecutable(a:buffer)
- if !executable(l:executable)
- return 0
- endif
-
let l:exec_args = l:executable =~? 'pipenv$'
\ ? ' run black'
\ : ''
@@ -29,7 +25,7 @@ function! ale#fixers#black#Fix(buffer) abort
let l:options = ale#Var(a:buffer, 'python_black_options')
return {
- \ 'command': ale#Escape(l:executable) . l:exec_args
+ \ 'command': ale#Escape(l:executable. l:exec_args)
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' -',
\}