From: Fred Morcos Date: Mon, 11 Apr 2022 13:23:08 +0000 (+0200) Subject: Cleanup X-Git-Tag: auth-4.8.0-alpha0~124^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=926eb28c7ec371681fe87e547cc4c60221cfcfa4;p=thirdparty%2Fpdns.git Cleanup --- diff --git a/pdns/dnssecinfra.cc b/pdns/dnssecinfra.cc index 92f80da469..be1b908bca 100644 --- a/pdns/dnssecinfra.cc +++ b/pdns/dnssecinfra.cc @@ -194,13 +194,13 @@ std::string DNSCryptoKeyEngine::convertToISC() const std::unique_ptr DNSCryptoKeyEngine::make(unsigned int algo) { const makers_t& makers = getMakers(); - makers_t::const_iterator iter = makers.find(algo); + + auto iter = makers.find(algo); if (iter != makers.cend()) { return (iter->second)(algo); } - else { - throw runtime_error("Request to create key object for unknown algorithm number " + std::to_string(algo)); - } + + throw runtime_error("Request to create key object for unknown algorithm number " + std::to_string(algo)); } /**