From e71f343a99739fda900108c86c6b87182cbdbd1c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 24 Oct 2023 08:46:54 -0700 Subject: [PATCH] Addressing feedback --- shape.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shape.c b/shape.c index a81c19cf41..69776c25f3 100644 --- a/shape.c +++ b/shape.c @@ -63,7 +63,10 @@ redblack_right(redblack_node_t * node) static redblack_node_t * redblack_find(redblack_node_t * tree, ID key) { - if (tree != LEAF) { + if (tree == LEAF) { + return LEAF; + } + else { if (tree->key == key) { return tree; } @@ -76,9 +79,6 @@ redblack_find(redblack_node_t * tree, ID key) } } } - else { - return 0; - } } static inline char