mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 13:36:37 +00:00
followup: code cleanup, remove unnecessary type check
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
035452b97f
commit
0bd2dc09e4
@ -48,10 +48,7 @@ sub parse_section_header {
|
|||||||
my $type = lc($1);
|
my $type = lc($1);
|
||||||
my $id = $2 // $type;
|
my $id = $2 // $type;
|
||||||
my $errmsg = undef; # set if you want to skip whole section
|
my $errmsg = undef; # set if you want to skip whole section
|
||||||
eval {
|
eval { PVE::JSONSchema::pve_verify_configid($id) };
|
||||||
PVE::JSONSchema::pve_verify_configid($type);
|
|
||||||
PVE::JSONSchema::pve_verify_configid($id);
|
|
||||||
};
|
|
||||||
$errmsg = $@ if $@;
|
$errmsg = $@ if $@;
|
||||||
my $config = {}; # to return additional attributes
|
my $config = {}; # to return additional attributes
|
||||||
return ($type, $id, $errmsg, $config);
|
return ($type, $id, $errmsg, $config);
|
||||||
|
Loading…
Reference in New Issue
Block a user