Skip to content

Commit

Permalink
consider-using-max-builtin (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed Jun 6, 2024
1 parent 966be39 commit a77a85a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_listports.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def test_list_ports():
ndi_port_names.append(ndiDeviceName(port_number))
try:
windows_port_number = int(serial_port.device.replace('COM', ''))
if windows_port_number > max_com_port:
max_com_port = windows_port_number
max_com_port = max(max_com_port, windows_port_number)
except ValueError:
# we're probably not on windows, so don't care
pass
Expand Down

0 comments on commit a77a85a

Please sign in to comment.