From: guoguangwu Date: Thu, 29 Feb 2024 07:48:17 +0000 (+0000) Subject: cmd/compile: remove unnecessary fmt.Sprintf call X-Git-Tag: go1.23rc1~1029 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4d923e3f077727718b708132ad67fad35dc064f9;p=gostls13.git cmd/compile: remove unnecessary fmt.Sprintf call 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 Reviewed-by: Robert Griesemer LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Commit-Queue: Ian Lance Taylor Reviewed-by: qiulaidongfeng <2645477756@qq.com> Auto-Submit: Robert Griesemer --- diff --git a/src/cmd/compile/internal/base/hashdebug.go b/src/cmd/compile/internal/base/hashdebug.go index 8342a5b9d9..4e36c8d549 100644 --- a/src/cmd/compile/internal/base/hashdebug.go +++ b/src/cmd/compile/internal/base/hashdebug.go @@ -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))) }