summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorPerl Tidy <perltidy@bugzilla.org>2018-12-05 21:38:52 +0100
committerDylan William Hardison <dylan@hardison.net>2018-12-05 23:49:08 +0100
commit8ec8da0491ad89604700b3e29a227966f6d84ba1 (patch)
tree9d270f173330ca19700e0ba9f2ee931300646de1 /contrib
parenta7bb5a65b71644d9efce5fed783ed545b9336548 (diff)
downloadbugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.gz
bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.xz
no bug - reformat all the code using the new perltidy rules
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/clear-memcached.pl9
-rwxr-xr-xcontrib/clear-templates.pl7
2 files changed, 8 insertions, 8 deletions
diff --git a/contrib/clear-memcached.pl b/contrib/clear-memcached.pl
index 58157770a..718fc0e98 100755
--- a/contrib/clear-memcached.pl
+++ b/contrib/clear-memcached.pl
@@ -17,8 +17,9 @@ use Bugzilla::Constants;
Bugzilla->usage_mode(USAGE_MODE_CMDLINE);
if (Bugzilla->memcached->{memcached}) {
- Bugzilla->memcached->clear_all();
- print "memcached cleared\n";
-} else {
- print "memcached is not enabled\n";
+ Bugzilla->memcached->clear_all();
+ print "memcached cleared\n";
+}
+else {
+ print "memcached is not enabled\n";
}
diff --git a/contrib/clear-templates.pl b/contrib/clear-templates.pl
index 5954e71ad..5569744f0 100755
--- a/contrib/clear-templates.pl
+++ b/contrib/clear-templates.pl
@@ -22,17 +22,16 @@ $| = 1;
# rename the current directory and create a new empty one
# the templates will lazy-compile on demand
-my $path = bz_locations()->{'template_cache'};
+my $path = bz_locations()->{'template_cache'};
my $delete_path = "$path.deleteme";
print "clearing $path\n";
rmtree("$delete_path") if -e "$delete_path";
rename($path, $delete_path)
- or die "renaming '$path' to '$delete_path' failed: $!\n";
+ or die "renaming '$path' to '$delete_path' failed: $!\n";
-mkpath($path)
- or die "creating '$path' failed: $!\n";
+mkpath($path) or die "creating '$path' failed: $!\n";
fix_dir_permissions($path);
# delete the temp directory (it's ok if this fails)