[Rt-commit] r6272 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Wed Oct 25 00:48:33 EDT 2006
Author: ruz
Date: Wed Oct 25 00:48:32 2006
New Revision: 6272
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/ACE_Overlay.pm
Log:
r4029 at cubic-pc: cubic | 2006-10-25 08:59:41 +0400
* simplyfy the sub a bit
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/ACE_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/ACE_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/ACE_Overlay.pm Wed Oct 25 00:48:32 2006
@@ -777,14 +777,7 @@
sub CanonicalizeRightName {
my $self = shift;
- my $right = shift;
- $right = lc $right;
- if ( exists $LOWERCASERIGHTNAMES{"$right"} ) {
- return ( $LOWERCASERIGHTNAMES{"$right"} );
- }
- else {
- return (undef);
- }
+ return $LOWERCASERIGHTNAMES{ lc shift };
}
# }}}
More information about the Rt-commit
mailing list