parser/gotest: timestampFunc should always be set, skip nil check

This commit is contained in:
Joël Stemmer 2022-08-13 21:59:50 +01:00
parent 1c826cb28d
commit 4ce910564c

View File

@ -189,10 +189,7 @@ func (b *reportBuilder) CreatePackage(name, result string, duration time.Duratio
pkg := gtr.Package{
Name: name,
Duration: duration,
}
if b.timestampFunc != nil {
pkg.Timestamp = b.timestampFunc()
Timestamp: b.timestampFunc(),
}
// Build errors are treated somewhat differently. Rather than having a