1
0
mirror of https://github.com/golang/go synced 2024-11-21 22:14:41 -07:00

Print out the coverage HTML file unconditionally

This commit is contained in:
Zhongpeng Lin 2021-10-14 08:17:19 -07:00
parent 24e798e287
commit 77146765d7

View File

@ -83,9 +83,8 @@ func htmlOutput(profile, outfile string) error {
}
if outfile == "" {
if !browser.Open("file://" + out.Name()) {
fmt.Fprintf(os.Stderr, "HTML output written to %s\n", out.Name())
}
fmt.Fprintf(os.Stderr, "HTML output written to %s\n", out.Name())
browser.Open("file://" + out.Name())
}
return nil