mirror of
https://github.com/webmin/webmin.git
synced 2026-06-04 20:30:22 +01:00
Don't use temp var for eval result, not idiomatic
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user