Base.pm: perlcritic fixes

This commit is contained in:
eleksir
2020-12-21 23:59:08 +03:00
parent 252bb86eb8
commit afe50154ab

View File

@@ -52,12 +52,12 @@ sub create_from_hash {
my $obj = $class->new(_brain => $brain); my $obj = $class->new(_brain => $brain);
unless (defined $hash) { unless (defined $hash) {
cluck "Hash is undef"; cluck 'Hash is undef';
return $obj; return $obj;
} }
unless (ref ($hash) eq 'HASH') { unless (ref ($hash) eq 'HASH') {
cluck "Not a hash " . Dumper ($hash); cluck 'Not a hash ' . Dumper ($hash);
return $obj; return $obj;
} }