Commit f07d88be authored by Shubham Lagwankar's avatar Shubham Lagwankar

Problem: redundant check in condition

Solution: remove it
parent 49f4ef17
......@@ -292,8 +292,7 @@ bool zmq::radix_tree_t::add (const unsigned char *key_, size_t key_size_)
if (key_bytes_matched != key_size_) {
// Not all characters match, we might have to split the node.
if (key_bytes_matched == 0
|| prefix_bytes_matched == current_node.prefix_length ()) {
if (prefix_bytes_matched == current_node.prefix_length ()) {
// The mismatch is at one of the outgoing edges, so we
// create an edge from the current node to a new leaf node
// that has the rest of the key as the prefix.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment