From b08542715a7020c979cbec498a45af8d94d44227 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 7 Nov 2015 15:37:39 +0900 Subject: [PATCH] Handle plugins which don't provide filter --- goldsmith.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goldsmith.go b/goldsmith.go index e0b88d8..a33d1b2 100644 --- a/goldsmith.go +++ b/goldsmith.go @@ -153,7 +153,7 @@ func (gs *goldsmith) chain(s stage, c Chainer) { go c.Chain(gs, allowed, s.output) 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 } else { allowed <- file