[Bps-public-commit] Path-Dispatcher branch, complete, updated. 318997cdc782ef5c4f1f46d454bdc2e156159868
sartak at bestpractical.com
sartak at bestpractical.com
Fri Dec 18 19:10:46 EST 2009
The branch, complete has been updated
via 318997cdc782ef5c4f1f46d454bdc2e156159868 (commit)
from ca495a52aec12c6ff6077903a6109afcc0886080 (commit)
Summary of changes:
lib/Path/Dispatcher.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 318997cdc782ef5c4f1f46d454bdc2e156159868
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Dec 18 19:10:41 2009 -0500
Remove duplicate completions
diff --git a/lib/Path/Dispatcher.pm b/lib/Path/Dispatcher.pm
index 88ac7ba..3049e27 100644
--- a/lib/Path/Dispatcher.pm
+++ b/lib/Path/Dispatcher.pm
@@ -80,7 +80,8 @@ sub complete {
);
}
- return map { $_->complete($path) } $self->rules;
+ my %seen;
+ return grep { !$seen{$_}++ } map { $_->complete($path) } $self->rules;
}
# We don't export anything, so if they request something, then try to error
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list