Skip to content

Commit

Permalink
cmd/compile: remove unnecessary fmt.Sprintf call
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill committed Feb 29, 2024
1 parent 0784fd1 commit a3d4fe2
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 a3d4fe2

Please sign in to comment.