Skip to content

Commit

Permalink
Merge pull request #6978 from testfirstcoder/use-collection-expressio…
Browse files Browse the repository at this point in the history
…n-spread-operator

use collection expression spread operator
  • Loading branch information
WilliamBZA committed Mar 28, 2024
2 parents 685face + 99ecf68 commit fa2c2fa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/NServiceBus.Core/Features/FeatureActivator.cs
Expand Up @@ -150,10 +150,7 @@ static bool DirectedCycleExistsFrom(Node node, Node[] visitedNodes)
return true;
}

var newVisitedNodes = visitedNodes.Union(new[]
{
node
}).ToArray();
Node[] newVisitedNodes = [.. visitedNodes, node];

foreach (var subNode in node.previous)
{
Expand Down

0 comments on commit fa2c2fa

Please sign in to comment.