Skip to content

Commit

Permalink
Replace non-constant format string with fmt.Fprintln
Browse files Browse the repository at this point in the history
Go 1.24 introduces stricter checks for format string validation. This
commit replaces a non-constant format string in a call to `fmt.Printf`
with `fmt.Fprintln`, ensuring compliance with the new checks.

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
  • Loading branch information
mikelolasagasti committed Jan 21, 2025
1 parent fa118f5 commit 3f71f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration_tests/internal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func main() {
func getEnvOrDie(name string) string {
val, ok := os.LookupEnv(name)
if !ok {
fmt.Fprintf(os.Stderr, name+" could not be found in environment")
fmt.Fprintln(os.Stderr, name, "could not be found in environment")
os.Exit(1)
}
return val
Expand Down

0 comments on commit 3f71f22

Please sign in to comment.