Implement skip to next header on empty matchingLogs

This commit is contained in:
Edvard 2018-10-19 14:54:26 +02:00
parent 33f1f62c11
commit e7e511764e

View File

@ -77,6 +77,8 @@ func (transformer Transformer) Execute() error {
log.Printf("Error marking header as checked in %v: %v", transformerName, err) log.Printf("Error marking header as checked in %v: %v", transformerName, err)
return err return err
} }
// Continue with the next header; nothing to persist
continue
} }
models, err := transformer.Converter.ToModels(matchingLogs) models, err := transformer.Converter.ToModels(matchingLogs)