Don't use temp var for eval result, not idiomatic

This commit is contained in:
Joe Cooper
2026-05-23 01:04:05 -05:00
parent 4b33d8bc3f
commit 1e77343482

View File

@@ -22,7 +22,7 @@ if ($have_dnssec_tools) {
# All companion modules must load cleanly. A partial install would
# otherwise leave unqualified calls like rollmgr_sendcmd / rollrec_*
# undefined, causing runtime death deep inside dnssec helpers.
my $ok = eval {
$have_dnssec_tools = eval {
require Net::DNS::SEC::Tools::dnssectools;
Net::DNS::SEC::Tools::dnssectools->import;
require Net::DNS::SEC::Tools::rollmgr;
@@ -37,7 +37,6 @@ if ($have_dnssec_tools) {
Net::DNS->import;
1;
};
$have_dnssec_tools = 0 if (!$ok);
}
&init_config();