From 51707558c174e035c9f841bb5bbf83ec156d7359 Mon Sep 17 00:00:00 2001 From: Christopher Stone Date: Thu, 8 Mar 2018 18:27:41 +0000 Subject: [PATCH] removed redundant if/else statement --- robots/little_john/telemetry/code/monitor/serialselect.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/robots/little_john/telemetry/code/monitor/serialselect.py b/robots/little_john/telemetry/code/monitor/serialselect.py index 9bb2718..ccc18ca 100644 --- a/robots/little_john/telemetry/code/monitor/serialselect.py +++ b/robots/little_john/telemetry/code/monitor/serialselect.py @@ -44,10 +44,7 @@ def selectserial(): except: print("Choice unrecognised: please try again:") else: - if os=='Windows': - print("Only found one likely serial device: " + targetdevs[0]) - else: - print("Only found one likely serial device: " + targetdevs[0]) + print("Only found one likely serial device: " + targetdevs[0]) selection = 0 serialport=targetdevs[selection] -- libgit2 0.21.2