mirror of
https://git.proxmox.com/git/pve-common
synced 2025-04-29 14:29:43 +00:00
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:
parent
bd8408bcec
commit
b79643cb45
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user