Skip to content

Commit ef198ec

Browse files
authored
Merge pull request kubernetes#90316 from tangcong/fix-ipvs-staticheck-err
fix ipvs staticcheck error
2 parents a3feccc + 764b902 commit ef198ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/ipvs/ipvs_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func Test_toVirtualServer(t *testing.T) {
181181
if !Tests[i].expectError && err != nil {
182182
t.Errorf("case: %d, unexpected error: %v", i, err)
183183
}
184-
if got != nil && &Tests[i].virtualServer != nil {
184+
if got != nil {
185185
if !reflect.DeepEqual(*got, Tests[i].virtualServer) {
186186
t.Errorf("case: %d, got %#v, want %#v", i, *got, Tests[i].virtualServer)
187187
}

0 commit comments

Comments
 (0)