Permalink
Browse files

fix return value to be boolean

  • Loading branch information...
1 parent 7951721 commit 163ba6b83d61a7f9c5228b41a4e34497368678d4 @monken monken committed Nov 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/MetaCPAN/Model/User/Account.pm
@@ -54,7 +54,7 @@ after add_identity => sub {
sub _build_looks_human {
my $self = shift;
- return $self->has_identity('pause') || $self->passed_captcha;
+ return $self->has_identity('pause') || ($self->passed_captcha ? 1 : 0);
}
sub has_identity {

0 comments on commit 163ba6b

Please sign in to comment.