[Bps-public-commit] r16354 - in Path-Dispatcher/trunk: lib/Path/Dispatcher/Rule

sartak at bestpractical.com sartak at bestpractical.com
Sun Oct 19 05:24:17 EDT 2008


Author: sartak
Date: Sun Oct 19 05:24:17 2008
New Revision: 16354

Modified:
   Path-Dispatcher/trunk/   (props changed)
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Intersection.pm

Log:
 r74111 at onn:  sartak | 2008-10-19 05:13:46 -0400
 Return undef if there's no match in Intersection


Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Intersection.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Intersection.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Intersection.pm	Sun Oct 19 05:24:17 2008
@@ -26,7 +26,7 @@
     my $path = shift;
 
     for my $rule ($self->rules) {
-        return 0 unless $rule->match($path);
+        return unless $rule->match($path);
     }
 
     return 1;



More information about the Bps-public-commit mailing list