Skip to content

Commit b73e4a9

Browse files
committed
parser/gotest: Remove unnecessary if statement when creating a package
We only execute this branch when we've captured some global output, so no need to check that again.
1 parent 4ce9105 commit b73e4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/gotest/report_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func (b *reportBuilder) CreatePackage(name, result string, duration time.Duratio
223223
Name: name,
224224
Output: b.output.Get(globalID),
225225
}
226-
} else if b.output.Contains(globalID) {
226+
} else {
227227
pkg.Output = b.output.Get(globalID)
228228
}
229229
b.packages = append(b.packages, pkg)

0 commit comments

Comments
 (0)