diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-23 13:47:51 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-23 15:37:36 +0000 |
commit | d4f50cb109c45c1f50700cbe2e88ec891eb7d469 (patch) | |
tree | d9f69a28fb4500ad985ccc2875836acf88105675 /src/common | |
parent | a few minor (but easy) performance tweaks (diff) | |
download | monero-d4f50cb109c45c1f50700cbe2e88ec891eb7d469.tar.xz |
remove some unused code
Found by codacy.com
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/dns_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dns_utils.cpp b/src/common/dns_utils.cpp index 606a2c7b7..4aa777c4d 100644 --- a/src/common/dns_utils.cpp +++ b/src/common/dns_utils.cpp @@ -305,7 +305,7 @@ std::vector<std::string> DNSResolver::get_record(const std::string& url, int rec // call DNS resolver, blocking. if return value not zero, something went wrong if (!ub_resolve(m_data->m_ub_context, string_copy(url.c_str()), record_type, DNS_CLASS_IN, &result)) { - dnssec_available = (result->secure || (!result->secure && result->bogus)); + dnssec_available = (result->secure || result->bogus); dnssec_valid = result->secure && !result->bogus; if (result->havedata) { |