From 54719a51e47d32dd8b4f7fc2fcdc282adae69d69 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 26 Jul 2024 03:27:22 +0000 Subject: [PATCH] Bug 37323: Tidy Signed-off-by: David Cook Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- tools/picture-upload.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/picture-upload.pl b/tools/picture-upload.pl index f754893f79..3c4e228f81 100755 --- a/tools/picture-upload.pl +++ b/tools/picture-upload.pl @@ -232,11 +232,11 @@ sub handle_dir { my $dir_h; opendir $dir_h, $dir; while ( my $filename = readdir $dir_h ) { - - if ( ($filename =~ m/datalink\.txt/i - || $filename =~ m/idlink\.txt/i ) && ( -e "$dir/$filename" && !-l "$dir/$filename")) { - $file = Cwd::abs_path("$dir/$filename"); - } + if ( ( $filename =~ m/datalink\.txt/i || $filename =~ m/idlink\.txt/i ) + && ( -e "$dir/$filename" && !-l "$dir/$filename" ) ) + { + $file = Cwd::abs_path("$dir/$filename"); + } } my $fh; unless ( open( $fh, '<', $file ) ) { -- 2.39.5