Skip to content

Commit

Permalink
tasks/ensure-api-healthy: fix lint warnings
Browse files Browse the repository at this point in the history
Fixes linter warnings by switching error print statements from
`fmt.Printf()` with newlines at the end to `fmt.Println()`. Should only
use `fmt.Printf()` when we want to format a template string with args.
  • Loading branch information
ctlong committed Aug 21, 2024
1 parent 35f0555 commit 287d3ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/ensure-api-healthy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func main() {
err := pollApi(client, url)
if err != nil {
numSuccessResponses = 0
fmt.Printf("Received error when requesting API, resetting...\n")
fmt.Printf(err.Error() + "\n")
fmt.Println("Received error when requesting API, resetting...")
fmt.Println(err.Error())
continue
}

Expand Down

0 comments on commit 287d3ae

Please sign in to comment.