projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
7905feb
)
Remove apparently useless Component::BUILDARGS conditional.
Florian Ragwitz [Mon, 25 Jan 2010 19:00:17 +0000 (19:00 +0000)]
lib/Catalyst/Component.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Component.pm
b/lib/Catalyst/Component.pm
index
c4717b4
..
a279cd7
100644
(file)
--- a/
lib/Catalyst/Component.pm
+++ b/
lib/Catalyst/Component.pm
@@
-84,8
+84,6
@@
sub BUILDARGS {
} elsif (Class::MOP::is_class_loaded($_[0]) &&
$_[0]->isa('Catalyst') && ref($_[1]) eq 'HASH') {
$args = $_[1];
- } elsif ($_[0] == $_[1]) {
- $args = $_[1];
} else {
$args = +{ @_ };
}