code cleanup

This commit is contained in:
Dietmar Maurer 2014-12-31 09:53:47 +01:00
parent b21320547b
commit b192b93018

View File

@ -145,8 +145,7 @@ sub lock_file_full {
$err = $@;
}
if ($lock_handles->{$$}->{$filename}) {
my $fh = $lock_handles->{$$}->{$filename};
if (my $fh = $lock_handles->{$$}->{$filename}) {
$lock_handles->{$$}->{$filename} = undef;
close ($fh);
}