From 9a7e015408733e8105696cd324152644ce4745af Mon Sep 17 00:00:00 2001 From: Mason James Date: Wed, 27 Jun 2012 05:04:49 +1200 Subject: [PATCH] Bug 6679 - [SIGNED-OFF] fix 2 perlcritic violations in C4/ItemCirculationAlertPreference.pm "return" statement with explicit "undef" at line 170, column 13. See page 199 of PBP. (Severity: 5) "return" statement with explicit "undef" at line 407, column 9. See page 199 of PBP. (Severity: 5) Signed-off-by: Jonathan Druart Signed-off-by: Paul Poulain --- C4/ItemCirculationAlertPreference.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/ItemCirculationAlertPreference.pm b/C4/ItemCirculationAlertPreference.pm index 3d8bed4066..4d88fecf2e 100644 --- a/C4/ItemCirculationAlertPreference.pm +++ b/C4/ItemCirculationAlertPreference.pm @@ -167,7 +167,7 @@ sub create { return $class->new($self); } else { carp $dbh->errstr; - return undef; + return; } } } @@ -404,7 +404,7 @@ sub AUTOLOAD { if (exists $self->{$attr}) { return $self->{$attr}; } else { - return undef; + return; } } -- 2.39.5