From f22e9cdd02dc00b56153a678965c2951399dad81 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 1 Oct 2019 22:06:42 +0100 Subject: [PATCH] Code inspections --- Meade.net/SetupDialogForm.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Meade.net/SetupDialogForm.cs b/Meade.net/SetupDialogForm.cs index 2c46665..0a26df9 100644 --- a/Meade.net/SetupDialogForm.cs +++ b/Meade.net/SetupDialogForm.cs @@ -55,9 +55,7 @@ namespace ASCOM.Meade.net chkTrace.Checked = profileProperties.TraceLogger; // set the list of com ports to those that are currently available comboBoxComPort.Items.Clear(); - var portNames = SerialPort.GetPortNames().ToArray(); - - comboBoxComPort.Items.AddRange(portNames); // use System.IO because it's static + comboBoxComPort.Items.AddRange(SerialPort.GetPortNames().ToArray()); // use System.IO because it's static // select the current port if possible if (comboBoxComPort.Items.Contains(profileProperties.ComPort)) {