Skip to content

Commit

Permalink
cmd/compile: remove unnecessary fmt.Sprintf call
Browse files Browse the repository at this point in the history
Change-Id: I38ba7cb0179ec9226a68629c53ea2d81fa19c059
GitHub-Last-Rev: a3d4fe2
GitHub-Pull-Request: #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>
  • Loading branch information
testwill authored and gopherbot committed Mar 1, 2024
1 parent 4b43913 commit 4d923e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/base/hashdebug.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}
Expand Down

0 comments on commit 4d923e3

Please sign in to comment.