pbs client: use spaces around list braces and parens around ternaries

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
This commit is contained in:
Max Carrara 2024-08-02 15:26:44 +02:00 committed by Thomas Lamprecht
parent bd8408bcec
commit b79643cb45

View File

@ -380,7 +380,7 @@ sub file_restore_list {
my ($self, $snapshot, $filepath, $base64, $extra_params) = @_;
(my $namespace, $snapshot) = split_namespaced_parameter($self, $snapshot);
my $cmd = [ $snapshot, $filepath, "--base64", $base64 ? 1 : 0];
my $cmd = [ $snapshot, $filepath, "--base64", ($base64 ? 1 : 0) ];
if (my $timeout = $extra_params->{timeout}) {
push($cmd->@*, '--timeout', $timeout);
@ -432,7 +432,7 @@ sub file_restore_extract {
my $fn = fileno($fh);
my $errfunc = sub { print $_[0], "\n"; };
my $cmd = [ $snapshot, $filepath, "-", "--base64", $base64 ? 1 : 0];
my $cmd = [ $snapshot, $filepath, "-", "--base64", ($base64 ? 1 : 0) ];
if ($tar) {
push(@$cmd, '--format', 'tar', '--zstd', 1);
}