Skip to content

Commit

Permalink
Accept multiple tree output types.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaby76 committed Sep 12, 2024
1 parent 6fba5d9 commit ec37ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/trtree/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ public void Execute(Config config)
lexer,
parser).ToString());
}
else if (config.ParenIndentStyle)
if (config.ParenIndentStyle)
{
sb.AppendLine(
TreeOutput.OutputTree(
node,
lexer,
parser).ToString());
}
else if (config.IndentStyle)
if (config.IndentStyle)
{
sb.AppendLine(
TreeOutput.OutputTreeIndentStyle(
Expand Down

0 comments on commit ec37ac1

Please sign in to comment.