Skip to content

Commit 764b902

Browse files
committed
fix ipvs staticcheck error
1 parent 8b0a7de commit 764b902

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)