Skip to content

Commit

Permalink
chore: refactor uninstrumented example to match instrumented
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Eulalio <igor.eulalio@sysdig.com>
  • Loading branch information
IgorEulalio committed Nov 26, 2024
1 parent 76e0578 commit d13c0b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/dice/uninstrumented/rolldice.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
package main

import (
"fmt"
"io"
"log"
"math/rand"
Expand All @@ -17,7 +16,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) //nolint:perfsprint
msg = player + " is rolling the dice"
} else {
msg = "Anonymous player is rolling the dice"
}
Expand Down

0 comments on commit d13c0b8

Please sign in to comment.