Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
f07d88be
Commit
f07d88be
authored
Jul 26, 2019
by
Shubham Lagwankar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: redundant check in condition
Solution: remove it
parent
49f4ef17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
radix_tree.cpp
src/radix_tree.cpp
+1
-2
No files found.
src/radix_tree.cpp
View file @
f07d88be
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment