Skip to content
Snippets Groups Projects
Commit 326e25d1 authored by Andy Yates's avatar Andy Yates
Browse files

[ENSCORESW-270]. Fixed issue with can() call which was returning a boolean...

[ENSCORESW-270]. Fixed issue with can() call which was returning a boolean flag rather than the coderef can() actually returns. Switched to local variables and the entire thing looks fine now
parent 5989548c
No related branches found
No related tags found
No related merge requests found
......@@ -135,9 +135,11 @@ sub isa {
sub can {
my ($self, $method) = @_;
return 1 if $self->SUPER::can($method);
return 1 if $self->__proxy()->can($method);
return 0;
my $super_can = $self->SUPER::can($method);
return $super_can if $super_can;
my $proxy_can = $self->__proxy()->can($method);
return $proxy_can if $proxy_can;
return;
}
=head2 DESTROY
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment