cmd/cover: remove unnecessary fmt.Sprintf

Change-Id: I892f17a8a6464d53dbf330a41439a81cb8873262
Reviewed-on: https://go-review.googlesource.com/c/go/+/436654
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
This commit is contained in:
cuiweixie 2022-09-29 20:29:41 +08:00 committed by Gopher Robot
parent 1985507257
commit 0582b7958e

View file

@ -582,7 +582,7 @@ func (p *Package) annotateFile(name string, fd io.Writer, last bool) {
}
if pkgconfig.PkgName == "main" {
file.edit.Insert(file.offset(file.astFile.Name.End()),
fmt.Sprintf("; import _ \"runtime/coverage\""))
"; import _ \"runtime/coverage\"")
}
if counterStmt != nil {