]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove unnecessary fmt.Sprintf call
authorguoguangwu <guoguangwug@gmail.com>
Thu, 29 Feb 2024 07:48:17 +0000 (07:48 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 1 Mar 2024 01:25:23 +0000 (01:25 +0000)
Change-Id: I38ba7cb0179ec9226a68629c53ea2d81fa19c059
GitHub-Last-Rev: a3d4fe2ac2d2f40033ae0244a264074d45b3ad52
GitHub-Pull-Request: golang/go#66024
Reviewed-on: https://go-review.googlesource.com/c/go/+/568115
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Auto-Submit: Robert Griesemer <gri@google.com>

src/cmd/compile/internal/base/hashdebug.go

index 8342a5b9d93d3012ca614a4c25c4321e3126008d..4e36c8d54971cd7c950513dd09cb8b70dead13a7 100644 (file)
@@ -197,7 +197,7 @@ func NewHashDebug(ev, s string, file io.Writer) *HashDebug {
                        break
                }
                if i == 0 {
-                       hd.matches = append(hd.matches, toHashAndMask(s, fmt.Sprintf("%s", ev)))
+                       hd.matches = append(hd.matches, toHashAndMask(s, ev))
                } else {
                        hd.matches = append(hd.matches, toHashAndMask(s, fmt.Sprintf("%s%d", ev, i-1)))
                }