btrbk: tidy check_file

pull/409/head
Axel Burri 2021-07-14 15:57:31 +02:00
parent 47a3aa5849
commit 54bb876b85
1 changed files with 1 additions and 3 deletions

4
btrbk
View File

@ -3861,9 +3861,7 @@ sub check_file($$;@)
my %opts = @_; my %opts = @_;
my $sanitize = $opts{sanitize}; my $sanitize = $opts{sanitize};
my $error_statement = $opts{error_statement}; # if not defined, no error messages are printed my $error_statement = $opts{error_statement}; # if not defined, no error messages are printed
my $match = $accept->{wildcards} ? $glob_match : $file_match;
my $match = $file_match;
$match = $glob_match if($accept->{wildcards});
if($file =~ /^($match)$/) { if($file =~ /^($match)$/) {
$file = $1; $file = $1;