Skip to content

Commit

Permalink
Fix IDE0090 warning (#4674)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman committed Aug 27, 2023
1 parent 9c3a632 commit b5d8524
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static List<ProcessTreeNode> GetProcessTree(this Process process)
var limit = 10;
ResolveChildren(process, acc, level, limit);

return new List<ProcessTreeNode> { new ProcessTreeNode { Process = process, Level = 0 } }.Concat(acc.Where(a => a.Level > 0)).ToList();
return new List<ProcessTreeNode> { new() { Process = process, Level = 0 } }.Concat(acc.Where(a => a.Level > 0)).ToList();
}

/// <summary>
Expand Down

0 comments on commit b5d8524

Please sign in to comment.