Addressing feedback

This commit is contained in:
Aaron Patterson 2023-10-24 08:46:54 -07:00 committed by Aaron Patterson
parent 884c3195d9
commit e71f343a99

View File

@ -63,7 +63,10 @@ redblack_right(redblack_node_t * node)
static redblack_node_t * static redblack_node_t *
redblack_find(redblack_node_t * tree, ID key) redblack_find(redblack_node_t * tree, ID key)
{ {
if (tree != LEAF) { if (tree == LEAF) {
return LEAF;
}
else {
if (tree->key == key) { if (tree->key == key) {
return tree; return tree;
} }
@ -76,9 +79,6 @@ redblack_find(redblack_node_t * tree, ID key)
} }
} }
} }
else {
return 0;
}
} }
static inline char static inline char