Skip to content

Commit

Permalink
Don't assume references are blessed, again.
Browse files Browse the repository at this point in the history
Making the same changes as in commit: fd3cd6a
He must have missed this instance of a potentially unblessed $_.
  • Loading branch information
Neil Hooey committed Apr 18, 2012
1 parent df34750 commit 7426c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dancer/Exception.pm
Expand Up @@ -49,7 +49,7 @@ sub continuation (&;@) {
}, 'Try::Tiny::Catch') , @new_rest);

return ( bless ( \ sub {
ref && $_->isa('Dancer::Continuation')
ref && blessed($_) && $_->isa('Dancer::Continuation')
? $block->(@_) : die($_);
}, 'Try::Tiny::Catch'), @new_rest );
}
Expand Down

0 comments on commit 7426c65

Please sign in to comment.