Skip to content

Commit 3f71f22

Browse files
Replace non-constant format string with fmt.Fprintln
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 <[email protected]>
1 parent fa118f5 commit 3f71f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration_tests/internal/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func main() {
3939
func getEnvOrDie(name string) string {
4040
val, ok := os.LookupEnv(name)
4141
if !ok {
42-
fmt.Fprintf(os.Stderr, name+" could not be found in environment")
42+
fmt.Fprintln(os.Stderr, name, "could not be found in environment")
4343
os.Exit(1)
4444
}
4545
return val

0 commit comments

Comments
 (0)