fix ipvs staticcheck error

This commit is contained in:
tangcong 2020-04-19 16:59:13 +08:00
parent 8b0a7dea1d
commit 764b902d72

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)
}