Skip to content

Commit

Permalink
Merge pull request #5453 from perlpunk/strict-refs
Browse files Browse the repository at this point in the history
Remove unnecessary disabling of strict refs
  • Loading branch information
mergify[bot] committed Feb 6, 2024
2 parents 0d50a81 + f29168d commit 656da5a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/OpenQA/Parser.pm
Expand Up @@ -40,7 +40,6 @@ sub _build_parser {
if (my $e = load_class $parser_name) {
croak ref $e ? "Exception: $e" : 'Parser not found!';
}
no strict 'refs';
eval { $p_instance = $parser_name->new(@args); };
croak "Invalid parser supplied: $@" if $@;
}
Expand Down Expand Up @@ -136,7 +135,6 @@ sub restore_el {
my $data = $obj->{OpenQA::Parser::DATA_FIELD()};

{
no strict 'refs';
return $type->can('new') ? $type->new(ref $data eq 'ARRAY' ? @{$data} : $data) : $data;
};
}
Expand Down Expand Up @@ -168,7 +166,6 @@ sub _load_tree {
my @coll = sort keys %{$tree};

{
no strict 'refs';
local $@;
eval {
foreach my $collection (@coll) {
Expand Down

0 comments on commit 656da5a

Please sign in to comment.