Handle plugins which don't provide filter

This commit is contained in:
Alex Yatskov 2015-11-07 15:37:39 +09:00
parent 23d9ff7e00
commit b08542715a

View File

@ -153,7 +153,7 @@ func (gs *goldsmith) chain(s stage, c Chainer) {
go c.Chain(gs, allowed, s.output) go c.Chain(gs, allowed, s.output)
for file := range s.input { for file := range s.input {
if file.flags&FILE_FLAG_STATIC != 0 || f.Filter(file.Path) { if file.flags&FILE_FLAG_STATIC != 0 || (f != nil && f.Filter(file.Path)) {
s.output <- file s.output <- file
} else { } else {
allowed <- file allowed <- file