Skip to content

Commit 6b69f02

Browse files
committed
Fix return in wrong place
1 parent 0817773 commit 6b69f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/codefmt/ktfmt.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ function! codefmt#ktfmt#GetFormatter() abort
5757
" command is executable and doesn't look like 'java' so assume yes
5858
let s:cmdAvailable[l:joined] = 1
5959
endif
60+
return s:cmdAvailable[l:joined]
6061
else
6162
if l:cmd[0] =~# ','
6263
call maktaba#error#Warn(
6364
\ 'ktfmt_executable is a string "%s" but looks like a list. '
6465
\ . 'Try not quoting the comma-separated value',
6566
\ l:cmd[0])
6667
endif
67-
return s:cmdAvailable[l:joined]
6868
" don't cache unavailability, in case user installs the command
6969
return 0
7070
endif

0 commit comments

Comments
 (0)