From 0bd2dc09e45932dbb647a11903e697fedda156c1 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 11 Apr 2019 09:11:07 +0200 Subject: [PATCH] followup: code cleanup, remove unnecessary type check Signed-off-by: Thomas Lamprecht --- PVE/Status/Plugin.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/PVE/Status/Plugin.pm b/PVE/Status/Plugin.pm index d348699f..18b2ef9c 100644 --- a/PVE/Status/Plugin.pm +++ b/PVE/Status/Plugin.pm @@ -48,10 +48,7 @@ sub parse_section_header { my $type = lc($1); my $id = $2 // $type; my $errmsg = undef; # set if you want to skip whole section - eval { - PVE::JSONSchema::pve_verify_configid($type); - PVE::JSONSchema::pve_verify_configid($id); - }; + eval { PVE::JSONSchema::pve_verify_configid($id) }; $errmsg = $@ if $@; my $config = {}; # to return additional attributes return ($type, $id, $errmsg, $config);