Актуализирован список perlcritic policies, исправлены минорные замечания critic-а

This commit is contained in:
eleksir
2022-04-04 22:57:24 +03:00
parent ba69f9d9df
commit e823573534
2 changed files with 7 additions and 3 deletions

View File

@@ -83,8 +83,8 @@ if ($UID == 0) {
make_path (
$logdir, {
uid => $uid,
group => $gid
}
group => $gid,
},
) or die "Unable to create $logdir: $OS_ERROR\n";
}
}
@@ -115,7 +115,7 @@ my $apath = abs_path $PROGRAM_NAME;
unless (defined $apath) {
$log->fatal ("[FATAL] Unable to get abs_path: $OS_ERROR\n");
exit 1;
};
}
my $pidfile = sprintf '%s/%s.pid', $piddir, basename $apath;
$log->info ("[INFO] Creating pidfile at $pidfile");