Skip to content

Commit

Permalink
implicit return value looks better here
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 26, 2014
1 parent af8e964 commit 37d1b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/JSON.pm
Expand Up @@ -86,7 +86,7 @@ sub _decode {
$$valueref = _decode_value();

# Leftover data
return m/\G[\x20\x09\x0a\x0d]*\z/gc || _throw('Unexpected data');
m/\G[\x20\x09\x0a\x0d]*\z/gc or _throw('Unexpected data');
} ? return undef : chomp $@;

return $@;
Expand Down

0 comments on commit 37d1b3c

Please sign in to comment.