Skip to content

Commit

Permalink
No need for a ref HASH check.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Jun 24, 2010
1 parent 298cc41 commit eb96c07
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions lib/WebGUI/Shop/Pay.pm
Expand Up @@ -64,9 +64,6 @@ around BUILDARGS => sub {
my $className = shift;

##Original arguments start here.
if (ref $_[0] eq 'HASH') {
return $className->$orig(@_);
}
my $protoSession = $_[0];
if (blessed $protoSession && $protoSession->isa('WebGUI::Session')) {
return $className->$orig(session => $protoSession);
Expand Down
3 changes: 0 additions & 3 deletions lib/WebGUI/Shop/Ship.pm
Expand Up @@ -39,9 +39,6 @@ around BUILDARGS => sub {
my $className = shift;

##Original arguments start here.
if (ref $_[0] eq 'HASH') {
return $className->$orig(@_);
}
my $protoSession = $_[0];
if (blessed $protoSession && $protoSession->isa('WebGUI::Session')) {
return $className->$orig(session => $protoSession);
Expand Down

0 comments on commit eb96c07

Please sign in to comment.