]> git.proxmox.com Git - pve-container.git/commitdiff
config: small code/whitespace cleanups
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Oct 2022 05:37:40 +0000 (07:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Oct 2022 05:37:49 +0000 (07:37 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Config.pm

index 756f9ab4e119dd63d919a219182a137016a4abbd..e075e3988e497cdb6178caa8f5d5771d328c9402 100644 (file)
@@ -2,6 +2,7 @@ package PVE::LXC::Config;
 
 use strict;
 use warnings;
+
 use Fcntl qw(O_RDONLY);
 
 use PVE::AbstractConfig;
@@ -16,8 +17,10 @@ use PVE::LXC;
 
 use base qw(PVE::AbstractConfig);
 
-use constant {FIFREEZE => 0xc0045877,
-              FITHAW   => 0xc0045878};
+use constant {
+    FIFREEZE => 0xc0045877,
+    FITHAW   => 0xc0045878,
+};
 
 my $nodename = PVE::INotify::nodename();
 my $lock_handles =  {};
@@ -1256,11 +1259,9 @@ sub print_lxc_network {
 sub parse_lxc_network {
     my ($class, $data) = @_;
 
-    my $res = {};
-
-    return $res if !$data;
+    return {} if !$data;
 
-    $res = PVE::JSONSchema::parse_property_string($netconf_desc, $data);
+    my $res = PVE::JSONSchema::parse_property_string($netconf_desc, $data);
 
     $res->{type} = 'veth';
     if (!$res->{hwaddr}) {