#384 Try and stop stupid errors coming from the gobuild functions

This commit is contained in:
w0rp 2017-03-04 23:34:57 +00:00
parent fb8df75ac3
commit c1947d13cf

View File

@ -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)