aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-23 13:47:51 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-11-23 15:37:36 +0000
commitd4f50cb109c45c1f50700cbe2e88ec891eb7d469 (patch)
treed9f69a28fb4500ad985ccc2875836acf88105675 /src/common
parenta few minor (but easy) performance tweaks (diff)
downloadmonero-d4f50cb109c45c1f50700cbe2e88ec891eb7d469.tar.xz
remove some unused code
Found by codacy.com
Diffstat (limited to 'src/common')
-rw-r--r--src/common/dns_utils.cpp2
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)
{