mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00:00
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:
parent
1985507257
commit
0582b7958e
1 changed files with 1 additions and 1 deletions
|
@ -582,7 +582,7 @@ func (p *Package) annotateFile(name string, fd io.Writer, last bool) {
|
||||||
}
|
}
|
||||||
if pkgconfig.PkgName == "main" {
|
if pkgconfig.PkgName == "main" {
|
||||||
file.edit.Insert(file.offset(file.astFile.Name.End()),
|
file.edit.Insert(file.offset(file.astFile.Name.End()),
|
||||||
fmt.Sprintf("; import _ \"runtime/coverage\""))
|
"; import _ \"runtime/coverage\"")
|
||||||
}
|
}
|
||||||
|
|
||||||
if counterStmt != nil {
|
if counterStmt != nil {
|
||||||
|
|
Loading…
Reference in a new issue