From dfe5cd0a2c29a7ea99a8dd6ae5f6cb5d1f2bfa68 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Tue, 23 Jul 2024 12:53:02 +0300 Subject: [PATCH] Fix to simplify JSON check --- stats.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats.pl b/stats.pl index 3cdb083cb..231cd2c0b 100755 --- a/stats.pl +++ b/stats.pl @@ -9,9 +9,9 @@ use lib ("$ENV{'PERLLIB'}/vendor_perl"); use Net::WebSocket::Server; use utf8; -eval "use JSON::XS qw(encode_json decode_json);"; +eval "use JSON::XS"; if ($@) { - eval "use JSON::PP qw(encode_json decode_json);"; + eval "use JSON::PP"; } our ($current_theme);