mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 21:12:31 +08:00
#384 Try and stop stupid errors coming from the gobuild functions
This commit is contained in:
@@ -101,6 +101,12 @@ function! ale_linters#go#gobuild#CopyFiles(buffer, golist_output) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#go#gobuild#GetCommand(buffer, copy_output) abort
|
function! ale_linters#go#gobuild#GetCommand(buffer, copy_output) abort
|
||||||
|
" If for some reason we don't get any output from the last command, stop
|
||||||
|
" here.
|
||||||
|
if empty(a:copy_output)
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
|
|
||||||
let l:tempdir = a:copy_output[0]
|
let l:tempdir = a:copy_output[0]
|
||||||
let l:importpath = s:PackageImportPath(a:buffer)
|
let l:importpath = s:PackageImportPath(a:buffer)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user