diff options
Diffstat (limited to 'src/debug.c')
| -rw-r--r-- | src/debug.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/debug.c b/src/debug.c index b23fe51..c2b416e 100644 --- a/src/debug.c +++ b/src/debug.c @@ -34,9 +34,8 @@ void ast_print(int level, t_ast *ast) ft_lstiter(ast->redirs, token_put); printf(" ]\n"); ast_print(level + 1, ast->parent_ast); - } - if (ast->tag == AST_CMD) + else if (ast->tag == AST_CMD) { print_level(level); printf("cmd: [ "); @@ -45,8 +44,7 @@ void ast_print(int level, t_ast *ast) ft_lstiter(ast->redirs, token_put); printf(" ]"); } - else - { + else if (ast->tag == AST_OP) { /* printf("SEP: %d\n", ast->op.sep); */ print_level(level); /* printf("redirs: ["); */ |
