trivial refactor

This commit is contained in:
Martin Grenfell 2011-12-15 23:09:17 +00:00
parent bfe3725e13
commit d053c8da1d

View File

@ -208,7 +208,7 @@ function! s:ErrorsForType(type)
if !exists("b:syntastic_loclist")
return []
endif
return filter(copy(b:syntastic_loclist), 'v:val["type"] ==? "' . a:type . '"')
return s:FilterLocList(b:syntastic_loclist, {'type': a:type})
endfunction
function! s:Errors()