~singpolyma/biboumi

92c99bb9dd1e431de000f085e0c6c05565fee650 — louiz’ 7 years ago 3620d53
Remove a branch that execute identical code in both cases

fix coverity CID 134469
1 files changed, 1 insertions(+), 5 deletions(-)

M louloulibs/network/dns_handler.cpp
M louloulibs/network/dns_handler.cpp => louloulibs/network/dns_handler.cpp +1 -5
@@ 46,11 46,7 @@ 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,
  ::ares_gethostbyname(this->channel, name.data(), family,
                         callback, data);
}