Fix bug handling plugins with no Process method
This commit is contained in:
parent
9aba24e892
commit
a197b40f61
@ -96,14 +96,14 @@ func (context *Context) step() {
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
for inputFile := range context.inputFiles {
|
||||
accept := processor != nil
|
||||
|
||||
var fileFilters []Filter
|
||||
fileFilters = append(fileFilters, context.fileFilters...)
|
||||
if filter != nil {
|
||||
fileFilters = append(fileFilters, filter)
|
||||
}
|
||||
|
||||
var accept bool
|
||||
if processor != nil {
|
||||
for _, fileFilter := range fileFilters {
|
||||
if accept, err = fileFilter.Accept(inputFile); err != nil {
|
||||
context.goldsmith.fault(fileFilter.Name(), inputFile, err)
|
||||
@ -113,6 +113,7 @@ func (context *Context) step() {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if accept {
|
||||
if _, err := inputFile.Seek(0, os.SEEK_SET); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user