From d0a3db1bf5056ba33fe9b2541b19ad500a8e2389 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 23 Jun 2021 22:40:05 +0200 Subject: [PATCH] api: file download: code cleanups Signed-off-by: Thomas Lamprecht --- PVE/API2/Storage/Status.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PVE/API2/Storage/Status.pm b/PVE/API2/Storage/Status.pm index 5395ddd..50013a3 100644 --- a/PVE/API2/Storage/Status.pm +++ b/PVE/API2/Storage/Status.pm @@ -519,7 +519,7 @@ __PACKAGE__->register_method({ pattern => 'https?://.*', }, content => { - description => "Content type.", + description => "Content type.", # TODO: could be optional & detected in most cases type => 'string', format => 'pve-storage-content', enum => ['iso', 'vztmpl'], }, @@ -545,7 +545,7 @@ __PACKAGE__->register_method({ type => 'boolean', optional => 1, default => 1, - } + }, }, }, returns => { @@ -607,7 +607,7 @@ __PACKAGE__->register_method({ PVE::Tools::download_file_from_url("$path/$filename", $url, $opts); }; - return $rpcenv->fork_worker('download', $filename, $user, $worker);; + return $rpcenv->fork_worker('download', $filename, $user, $worker); }}); 1;