tobyink / p5-json-schema

1 stars 4 forks source link

dead condition is used. Boolean never be detected #15

Open tobyink opened 3 years ago

tobyink commented 3 years ago

Migrated from rt.cpan.org #125029 (status was 'new')

Requestors:

From kes@cpan.org on 2018-04-07 11:39:56 :

https://metacpan.org/source/JSON::Schema::Helper#L559

the $$value can not be 0 and 1 at same time. You should use

Probably you mean:

(ref $value eq 'SCALAR' and ($$value==0 or $$value==1))