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:
parent
fe1768316a
commit
7fde55c188
1 changed files with 0 additions and 1 deletions
|
@ -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'}('', '');
|
||||
|
|
Loading…
Reference in a new issue