From a3d4fe2ac2d2f40033ae0244a264074d45b3ad52 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 29 Feb 2024 15:37:47 +0800 Subject: [PATCH] cmd/compile: remove unnecessary fmt.Sprintf call Signed-off-by: guoguangwu --- 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 8342a5b9d93d3..4e36c8d54971c 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))) }