mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-03 04:06:14 +00:00
cleanup: omit comparison with bool constants
Signed-off-by: tao.yang <tao.yang@daocloud.io>
This commit is contained in:
@@ -698,7 +698,7 @@ func TestRevertPorts(t *testing.T) {
|
||||
}
|
||||
}
|
||||
for _, lp := range tc.existingPorts {
|
||||
if existingPortsMap[lp].(*fakeClosable).closed == true {
|
||||
if existingPortsMap[lp].(*fakeClosable).closed {
|
||||
t.Errorf("Expect existing localport %v to be false in test case %v", lp, i)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user