Skip to content

Commit

Permalink
simplify TryGetByName (#6711)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored May 3, 2023
1 parent 90d6349 commit 53333bb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,7 @@ public IReadOnlyCollection<ChildRestartStats> Stats
/// <returns>TBD</returns>
public bool TryGetByName(string name, out IChildStats stats)
{
if (InternalChildren.TryGetValue(name, out stats))
return true;
stats = null;
return false;
return InternalChildren.TryGetValue(name, out stats);
}

/// <summary>
Expand Down

0 comments on commit 53333bb

Please sign in to comment.