Remove redundant IRoutingInputsOutputs filtering in route mapping loops

This commit is contained in:
copilot-swe-agent[bot] 2026-07-16 13:26:24 +00:00 committed by GitHub
parent 36c15b8d95
commit 14cd082076
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -348,9 +348,9 @@ namespace PepperDash.Essentials.Core
var sources = DeviceManager.AllDevices.OfType<IRoutingOutputs>()
.Where(d => !(d is IRoutingInputsOutputs)).ToList();
foreach (var sink in sinks.Where(d => !(d is IRoutingInputsOutputs)))
foreach (var sink in sinks)
{
foreach (var source in sources.Where(d => !(d is IRoutingInputsOutputs)))
foreach (var source in sources)
{
foreach (var inputPort in sink.InputPorts)
{