From 4d923e3f077727718b708132ad67fad35dc064f9 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 29 Feb 2024 07:48:17 +0000 Subject: [PATCH] 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 --- src/cmd/compile/internal/base/hashdebug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) } -- 2.48.1