Remove a branch that execute identical code in both cases
fix coverity CID 134469
This commit is contained in:
@@ -46,10 +46,6 @@ void DNSHandler::destroy()
|
||||
void DNSHandler::gethostbyname(const std::string& name, ares_host_callback callback,
|
||||
void* data, int family)
|
||||
{
|
||||
if (family == AF_INET)
|
||||
::ares_gethostbyname(this->channel, name.data(), family,
|
||||
callback, data);
|
||||
else
|
||||
::ares_gethostbyname(this->channel, name.data(), family,
|
||||
callback, data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user