Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen Toub <[email protected]>
  • Loading branch information
adamsitnik and stephentoub authored Nov 18, 2021
1 parent 07559c7 commit 0183954
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public static void CreateDirectory(string fullPath)
ValueListBuilder<int> stackDir = new(stackalloc int[32]); // 32 arbitrarily chosen
try
{
CreateParentsAndDirectory(fullPath, stackDir);
CreateParentsAndDirectory(fullPath, ref stackDir);
}
finally
{
Expand All @@ -318,7 +318,7 @@ public static void CreateDirectory(string fullPath)
}
}

private static void CreateParentsAndDirectory(string fullPath, ValueListBuilder<int> stackDir)
private static void CreateParentsAndDirectory(string fullPath, ref ValueListBuilder<int> stackDir)
{
stackDir.Append(fullPath.Length);

Expand Down

0 comments on commit 0183954

Please sign in to comment.