Skip to content

Commit f113a85

Browse files
committed
test: remove unnecessary check to see if gopls is enabled
These checks were added to avoid errors when gopls is not enabled due to the way the test script worked, but the check is no longer necessary now that the test script was fixed in #3500.
1 parent 63e79ba commit f113a85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/gotest.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ endfun
6565
" The current directory will be changed to the parent directory of module
6666
" root.
6767
fun! gotest#load_fixture(path) abort
68-
if go#util#has_job() && go#config#GoplsEnabled()
68+
if go#util#has_job()
6969
call go#lsp#CleanWorkspaces()
7070
endif
7171
let l:dir = go#util#tempdir("vim-go-test/testrun/")
@@ -77,7 +77,7 @@ fun! gotest#load_fixture(path) abort
7777
silent exe 'noautocmd e! ' . a:path
7878
silent exe printf('read %s/test-fixtures/%s', g:vim_go_root, a:path)
7979
silent noautocmd w!
80-
if go#util#has_job() && go#config#GoplsEnabled()
80+
if go#util#has_job()
8181
call go#lsp#AddWorkspaceDirectory(fnamemodify(l:full_path, ':p:h'))
8282
endif
8383

0 commit comments

Comments
 (0)