Minor cleanup.
This commit is contained in:
parent
56528e877e
commit
7c638f6f70
@ -56,7 +56,7 @@ function! syntastic#c#ReadConfig(file)
|
||||
endif
|
||||
endfor
|
||||
|
||||
return join(map(parameters, 'syntastic#util#shescape(fnameescape(v:val))'), ' ')
|
||||
return join(map(parameters, 'syntastic#util#shescape(fnameescape(v:val))'))
|
||||
endfunction
|
||||
|
||||
" GetLocList() for C-like compilers
|
||||
@ -178,7 +178,7 @@ function! s:GetIncludeDirs(filetype)
|
||||
call extend(include_dirs, g:syntastic_{a:filetype}_include_dirs)
|
||||
endif
|
||||
|
||||
return join(map(syntastic#util#unique(include_dirs), 'syntastic#util#shescape(fnameescape("-I" . v:val))'), ' ')
|
||||
return join(map(syntastic#util#unique(include_dirs), 'syntastic#util#shescape(fnameescape("-I" . v:val))'))
|
||||
endfunction
|
||||
|
||||
" search the first 100 lines for include statements that are
|
||||
|
@ -27,7 +27,7 @@ function! g:SyntasticMakeprgBuilder.New(checker, exe, args, fname, post_args, ta
|
||||
endfunction
|
||||
|
||||
function! g:SyntasticMakeprgBuilder.makeprg()
|
||||
return join([self.exe(), self.args(), self.fname(), self.post_args(), self.tail()])
|
||||
return join(filter([self.exe(), self.args(), self.fname(), self.post_args(), self.tail()], '!empty(v:val)'))
|
||||
endfunction
|
||||
|
||||
function! g:SyntasticMakeprgBuilder.exe()
|
||||
|
Loading…
Reference in New Issue
Block a user