diff options
author | Eric Wong <e@yhbt.net> | 2020-03-21 01:10:33 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-03-21 05:43:52 +0000 |
commit | 9ba72fb4d832390eac423e25e6734a9b21086322 (patch) | |
tree | 3513ba78335ba04cea4b29b623e150a1f69938f6 /lib/PublicInbox/WwwListing.pm | |
parent | 9253dc860de52360d3bc60710422783457143e3d (diff) | |
download | public-inbox-9ba72fb4d832390eac423e25e6734a9b21086322.tar.gz |
And not the last... I only noticed this since JSON::PP::Boolean was spewing redefinition warnings via overload.pm Fixes: 8fb8fc52420ef669 ("wwwlisting: avoid lazy loading JSON module")
Diffstat (limited to 'lib/PublicInbox/WwwListing.pm')
-rw-r--r-- | lib/PublicInbox/WwwListing.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm index 33cb0ace..42a0c0d8 100644 --- a/lib/PublicInbox/WwwListing.pm +++ b/lib/PublicInbox/WwwListing.pm @@ -20,7 +20,7 @@ if (eval { require IO::Compress::Gzip }) { for my $mod (qw(JSON::MaybeXS JSON JSON::PP)) { eval "require $mod" or next; # ->ascii encodes non-ASCII to "\uXXXX" - $json = $mod->new->ascii(1); + $json = $mod->new->ascii(1) and last; } } |