summaryrefslogtreecommitdiff
path: root/src/02
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-08-09 18:23:40 -0600
committermo khan <mo.khan@gmail.com>2020-08-09 18:23:40 -0600
commit3d811c69e67cff7114cbebf3c3971f6470fd6062 (patch)
tree715e18960b807d10f0cc2503c90777352991330f /src/02
parent082e48dadeb0100afa6f088d0ba3df4f2c54b3be (diff)
Remove curly braces
Diffstat (limited to 'src/02')
-rw-r--r--src/02/05/btree.c6
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);
- }
}
}