Skip to content

Commit 689feaa

Browse files
committed
Remove unused condition in tests
`defaults.ssl.enabled` is a bool, it will never be `None`. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 92028a8 commit 689feaa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_channel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ def test_parse_uri_ok( # pylint: disable=too-many-locals
154154
)
155155
expected_port = case.expected_port
156156
expected_ssl = (
157-
expected_options.ssl.enabled
158-
if "ssl=" in uri or defaults.ssl.enabled is None
159-
else defaults.ssl.enabled
157+
expected_options.ssl.enabled if "ssl=" in uri else defaults.ssl.enabled
160158
)
161159
expected_root_certificates = (
162160
expected_options.ssl.root_certificates

0 commit comments

Comments
 (0)