Skip to content

Commit

Permalink
Address linter complaint about use of Sprintf for strings that need…
Browse files Browse the repository at this point in the history
… no formating.
  • Loading branch information
DHaussermann committed Sep 6, 2024
1 parent 93e4052 commit 5d8cf1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/ltctl/comparison.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ func writeResults(results []comparison.Result, writer io.Writer) error {
var content string

for i, res := range results {
content += fmt.Sprintf("==================================================")
content += fmt.Sprintf("Comparison result:")
content += ("==================================================")
content += ("Comparison result:")
content += fmt.Sprintf("Report: %s\n", getReportFilename(i, res))
content += fmt.Sprintf("Grafana Dashboard: %s\n", res.DashboardURL)
for _, ltRes := range res.LoadTests {
Expand All @@ -83,7 +83,7 @@ func writeResults(results []comparison.Result, writer io.Writer) error {
}
content += fmt.Sprintf(" Errors: %d\n", ltRes.Status.NumErrors)
}
content += fmt.Sprintf("==================================================\n\n")
content += ("==================================================\n\n")
}
_, err := fmt.Fprintf(writer, content)
return err
Expand Down

0 comments on commit 5d8cf1b

Please sign in to comment.