Skip to content

Commit 1c92cae

Browse files
committed
test: avoid non-constant format string in printf
In preparation to the next commit which will bump the golang version we want to avoid calling printf with non-constant format strings. This needs to be done as the govet will include a new rule that prohibits exactly that -- calling into printf with non-constant format strings.
1 parent b21d5d2 commit 1c92cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/test/copy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func checkAliasing(t *testing.T, debug, strict bool, f1, f2 reflect.Value,
237237
"(shared %s)", path, f1.Kind())
238238

239239
if strict {
240-
t.Fatalf(msg)
240+
t.Fatal(msg)
241241
}
242242

243243
if debug {

0 commit comments

Comments
 (0)