From b162dd44da8694f91bcfb1614265ef334250bd24 Mon Sep 17 00:00:00 2001 From: Mason James Date: Wed, 27 Jun 2012 05:04:49 +1200 Subject: [PATCH 1/1] 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 --- C4/ItemCirculationAlertPreference.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/ItemCirculationAlertPreference.pm b/C4/ItemCirculationAlertPreference.pm index 3d8bed4..4d88fec 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; } } -- 1.7.7.3