mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Update to .NET Core 3.1 and apply Roslyn suggestions
This commit is contained in:
@@ -139,7 +139,7 @@ namespace ChrisKaczor.HomeMonitor.Weather.SerialReader
|
||||
|
||||
var ports = SerialPort.GetPortNames();
|
||||
|
||||
var port = ports.FirstOrDefault(p => p.StartsWith(portPrefix));
|
||||
var port = Array.Find(ports, p => p.StartsWith(portPrefix));
|
||||
|
||||
if (port != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user