Skip to content

Commit

Permalink
use the same idiom consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 2, 2016
1 parent ed9e5f8 commit a5dbee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/JSON.pm
Expand Up @@ -251,7 +251,7 @@ sub _encode_value {
# Number
no warnings 'numeric';
return $value
if length((my $dummy = '') & $value)
if ((my $dummy = '') & $value) ne ''
&& 0 + $value eq $value
&& $value * 0 == 0;

Expand Down

0 comments on commit a5dbee7

Please sign in to comment.