Go 1.1 or higher is required

This commit is contained in:
Joël Stemmer
2014-10-24 21:44:19 +02:00
parent 2021749f03
commit cea5308dd5
3 changed files with 15 additions and 13 deletions

View File

@ -102,8 +102,7 @@ func JUnitReportXML(report *Report, w io.Writer) error {
writer := bufio.NewWriter(w)
// remove newline from xml.Header, because xml.MarshalIndent starts with a newline
writer.WriteString(xml.Header[:len(xml.Header)-1])
writer.WriteString(xml.Header)
writer.Write(bytes)
writer.WriteByte('\n')
writer.Flush()