Skip to content

Commit

Permalink
Remove unnecessary disabling of strict refs
Browse files Browse the repository at this point in the history
Nothing is done here what strict would complain about.
  • Loading branch information
perlpunk committed Feb 6, 2024
1 parent 0d50a81 commit f29168d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/OpenQA/Parser.pm
Original file line number Diff line number Diff line change
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 f29168d

Please sign in to comment.