Skip to content

Commit

Permalink
fix: Change to strings replace function.
Browse files Browse the repository at this point in the history
  • Loading branch information
gowizzard committed Apr 10, 2024
1 parent 0c396dc commit 21dd6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handler/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func Metrics(w http.ResponseWriter, _ *http.Request) {
},
{
Key: "name",
Value: container.Name[1:],
Value: strings.Replace(container.Name, "/", "", 1),
},
{
Key: "image",
Expand Down

0 comments on commit 21dd6dc

Please sign in to comment.