Don't recursively gets stats beyond an ApplyDecorators decorator

This commit is contained in:
Tom Wilkie
2016-04-29 12:06:33 +01:00
parent cf879b268e
commit b4a59f6e36

View File

@@ -143,7 +143,7 @@ func (ad applyDecorator) Stats(rpt report.Report, dct Decorator) Stats {
if dct != nil {
return dct(ad.Renderer).Stats(rpt, nil)
}
return ad.Renderer.Stats(rpt, nil)
return Stats{}
}
// ApplyDecorators returns a renderer which will apply the given decorators