Skip to content

Commit f83b271

Browse files
chore: use chained comparisons
1 parent 31c08cb commit f83b271

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎ibmcloudant/features/changes_follower.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,8 @@ def __init__(
361361
call_timeout, read_timeout = timeouts
362362
call_timeout, read_timeout = call_timeout * 1000, read_timeout * 1000
363363
if (
364-
call_timeout > 0
365-
and call_timeout < _MIN_CLIENT_TIMEOUT
366-
or read_timeout > 0
367-
and read_timeout < _MIN_CLIENT_TIMEOUT
364+
0 < call_timeout < _MIN_CLIENT_TIMEOUT
365+
or 0 < read_timeout < _MIN_CLIENT_TIMEOUT
368366
):
369367
raise ValueError(
370368
'To use {} the client read and call timeouts must be at least'

0 commit comments

Comments
 (0)