Merge pull request #90316 from tangcong/fix-ipvs-staticheck-err

fix ipvs staticcheck error
This commit is contained in:
Kubernetes Prow Robot 2020-05-19 20:34:32 -07:00 committed by GitHub
commit ef198ec7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ func Test_toVirtualServer(t *testing.T) {
if !Tests[i].expectError && err != nil {
t.Errorf("case: %d, unexpected error: %v", i, err)
}
if got != nil && &Tests[i].virtualServer != nil {
if got != nil {
if !reflect.DeepEqual(*got, Tests[i].virtualServer) {
t.Errorf("case: %d, got %#v, want %#v", i, *got, Tests[i].virtualServer)
}