Don't initialize %opt entries to undef

There's no need -- if the key doesn't exist the value returned is
already `undef`.  This prevents debug output from being littered with
`undef` lines.
This commit is contained in:
Richard Hansen 2024-06-30 23:44:54 -04:00
parent fe1768316a
commit 7fde55c188

View file

@ -2098,7 +2098,6 @@ sub process_args {
next if !ref($_);
my ($key, $specifier) = @$_;
push @spec, $key . $specifier;
$opt{$key} //= undef;
}
if (!GetOptions(\%opt, @spec)) {
$opt{'help'}('', '');