summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-02-14 03:54:33 +0100
committerGitHub <noreply@github.com>2018-02-14 03:54:33 +0100
commitb5eaeed9b61ebdb01b3901c73b1fe261c97406eb (patch)
tree741cb3619f441d4a9bba3c3944a1fa0740d3c600 /scripts
parent0f2022577ff142359413c2c10af219b399b3e12a (diff)
downloadbugzilla-b5eaeed9b61ebdb01b3901c73b1fe261c97406eb.tar.gz
bugzilla-b5eaeed9b61ebdb01b3901c73b1fe261c97406eb.tar.xz
fix critic warnings from secbugstats (#397)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/localconfig-as-json10
1 files 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);