diff options
| author | mo khan <mo.khan@gmail.com> | 2020-08-09 18:23:40 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-08-09 18:23:40 -0600 |
| commit | 3d811c69e67cff7114cbebf3c3971f6470fd6062 (patch) | |
| tree | 715e18960b807d10f0cc2503c90777352991330f | |
| parent | 082e48dadeb0100afa6f088d0ba3df4f2c54b3be (diff) | |
Remove curly braces
| -rw-r--r-- | src/02/05/btree.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/02/05/btree.c b/src/02/05/btree.c index d480fdf..42b2e14 100644 --- a/src/02/05/btree.c +++ b/src/02/05/btree.c @@ -35,12 +35,10 @@ void btree_pre_order_number(BTree *root) { root = stack_pop(stack); original->pre_order[i++] = root->data; - if (root->right != NULL) { + if (root->right != NULL) stack_push(stack, root->right); - } - if (root->left != NULL) { + if (root->left != NULL) stack_push(stack, root->left); - } } } |
