mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Merge pull request #90316 from tangcong/fix-ipvs-staticheck-err
fix ipvs staticcheck error
This commit is contained in:
commit
ef198ec7ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue