mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Dereference string* before printing it with "%s%".
Suggested by "go vet".
This commit is contained in:
parent
e5e4c8a7d3
commit
3d02700cc8
@ -361,7 +361,7 @@ func (c *testClient) Validate(t *testing.T, received interface{}, err error) {
|
||||
}
|
||||
|
||||
if expected, received := requestBody, c.handler.RequestBody; expected != nil && *expected != received {
|
||||
t.Errorf("bad body for request %#v: expected %s, got %s", c.Request, expected, received)
|
||||
t.Errorf("bad body for request %#v: expected %s, got %s", c.Request, *expected, received)
|
||||
}
|
||||
|
||||
if c.Response.Body != nil && !reflect.DeepEqual(c.Response.Body, received) {
|
||||
|
Loading…
Reference in New Issue
Block a user