From 8ec8da0491ad89604700b3e29a227966f6d84ba1 Mon Sep 17 00:00:00 2001 From: Perl Tidy Date: Wed, 5 Dec 2018 15:38:52 -0500 Subject: no bug - reformat all the code using the new perltidy rules --- contrib/clear-templates.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'contrib/clear-templates.pl') 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) -- cgit v1.2.3-24-g4f1b