Remove unnecessary selection statements.

This commit is contained in:
Thomas Yuan 2015-08-26 11:26:21 -04:00
parent 4b702701b2
commit b26d08c66a
1 changed files with 2 additions and 10 deletions

View File

@ -83,16 +83,8 @@ struct direct_observer : observer
if (flags & flag_done) return;
flags |= flag_done;
bdecode_node e;
if (flags & flag_ipv6_address)
{
msg m(e, target_ep());
static_cast<direct_traversal*>(algorithm())->invoke_cb(m);
}
else
{
msg m(e, target_ep());
static_cast<direct_traversal*>(algorithm())->invoke_cb(m);
}
msg m(e, target_ep());
static_cast<direct_traversal*>(algorithm())->invoke_cb(m);
}
};