diff --git a/pkg/cover/report.go b/pkg/cover/report.go index ebf88400..784c470a 100644 --- a/pkg/cover/report.go +++ b/pkg/cover/report.go @@ -355,9 +355,7 @@ func addFunctionCoverage(file *file, data *templateData) { buf.WriteString(fmt.Sprintf("of %v", strconv.Itoa(len(function.totalPCs)))) buf.WriteString("
\n") } - if buf.Len() > 0 { - data.Functions = append(data.Functions, template.HTML(buf.String())) - } + data.Functions = append(data.Functions, template.HTML(buf.String())) } func processDir(dir *templateDir) {