[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. da8fdaa627f919c7bad4569f6a4b50794e4c8686
Evergreen Git
git at git.evergreen-ils.org
Tue Nov 8 13:16:09 EST 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_1 has been updated
via da8fdaa627f919c7bad4569f6a4b50794e4c8686 (commit)
from 517d5573f40faf3df7143f601b8e7c8ae305c0e1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit da8fdaa627f919c7bad4569f6a4b50794e4c8686
Author: Galen Charlton <gmc at esilibrary.com>
Date: Mon Oct 31 11:46:48 2011 -0400
lp849447: trival stylistic tweaks
- rename variable avoid double-negative
- avoid 'Variable declared in conditional statement' perlcritic gripe
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm
index ad39d39..1f0ed7c 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm
@@ -278,13 +278,13 @@ sub charge_ok {
# determine whether patron should be allowed to circulate materials:
# not barred, doesn't owe too much wrt fines/fees, privileges haven't
# expired
- my $no_circ = 't' if
+ my $circ_is_blocked =
(($u->barred eq 't') or
($u->standing_penalties and @{$u->standing_penalties}) or
(CORE::time > $expire->epoch));
return
- !$no_circ and
+ !$circ_is_blocked and
$u->active eq 't' and
$u->card->active eq 't';
}
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list