fixup perlcritic: indirect new

> Subroutine new called using indirect syntax at line 14, column 14.  See page 349 of PBP.  (Severity: 5)
This commit is contained in:
Your Name
2021-08-19 16:25:21 -04:00
parent 241985fb2d
commit 4632132d02
5 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ sub getHydraConfig {
my $conf = $ENV{"HYDRA_CONFIG"} || (Hydra::Model::DB::getHydraPath . "/hydra.conf");
my %opts = (%Hydra::Config::configGeneralOpts, -ConfigFile => $conf);
if (-f $conf) {
my %h = new Config::General(%opts)->getall;
my %h = Config::General->new(%opts)->getall;
$hydraConfig = \%h;
} else {