From b5eaeed9b61ebdb01b3901c73b1fe261c97406eb Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 13 Feb 2018 21:54:33 -0500 Subject: [PATCH] fix critic warnings from secbugstats (#397) --- scripts/localconfig-as-json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/localconfig-as-json b/scripts/localconfig-as-json index 329840ea5..f994e10c5 100755 --- a/scripts/localconfig-as-json +++ b/scripts/localconfig-as-json @@ -21,6 +21,12 @@ BEGIN { use Bugzilla; BEGIN { Bugzilla->extensions }; -use JSON::XS; +use JSON::MaybeXS; -print JSON::XS->new->canonical->utf8->ascii->encode(Bugzilla->localconfig); \ No newline at end of file +my $json = JSON::MaybeXS->new( + canonical => 1, + utf8 => 1, + ascii => 1, +); + +print $json->encode(Bugzilla->localconfig); -- 2.47.3