Skip to content

Commit

Permalink
fix: add nolint for perfsec
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Eulalio <[email protected]>
  • Loading branch information
IgorEulalio committed Nov 25, 2024
1 parent 8e5529a commit 76e0578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/dice/uninstrumented/rolldice.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func rolldice(w http.ResponseWriter, r *http.Request) {

var msg string
if player := r.PathValue("player"); player != "" {
msg = fmt.Sprintf("%s is rolling the dice", player)
msg = fmt.Sprintf("%s is rolling the dice", player) //nolint:perfsprint
} else {
msg = "Anonymous player is rolling the dice"
}
Expand Down

0 comments on commit 76e0578

Please sign in to comment.