Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-kirk committed Nov 3, 2023
1 parent f2df6e0 commit 53583e6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/GetBranches/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ private static async Task Run(GetBranchesOptions options)
printBranchesAsTree(0, branch);

Check failure on line 35 in examples/GetBranches/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-format

The name 'printBranchesAsTree' does not exist in the current context

Check failure on line 35 in examples/GetBranches/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-format

The name 'printBranchesAsTree' does not exist in the current context
}

private static void printBranchesAsTree(uint depth, Branch branch) {
for (int i = 0; i < depth; i++) {
private static void PrintBranchesAsTree(uint depth, Branch branch)
{
for (var i = 0; i < depth; i++)
{
Console.Write("--");
}
Console.WriteLine(branch.BlockHash);
branch.Children.ForEach(x => printBranchesAsTree(depth+1, x));
branch.Children.ForEach(x => printBranchesAsTree(depth + 1, x));

Check failure on line 45 in examples/GetBranches/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-format

The name 'printBranchesAsTree' does not exist in the current context

Check failure on line 45 in examples/GetBranches/Program.cs

View workflow job for this annotation

GitHub Actions / build-test-format

The name 'printBranchesAsTree' does not exist in the current context
}
}

0 comments on commit 53583e6

Please sign in to comment.