Merge pull request #113 from thomas-yuan/dht_direct

Remove unnecessary selection statements.
This commit is contained in:
Arvid Norberg 2015-08-26 18:00:42 -04:00
commit d2e2703680
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);
}
};