]> git.proxmox.com Git - pve-guest-common.git/commitdiff
abstract migrate: minimal code cleanups
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Jan 2023 11:59:37 +0000 (12:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Jan 2023 11:59:37 +0000 (12:59 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/AbstractMigrate.pm

index dccd7b25a29ed6dfca2b46155f75b63162564503..a836c13ced89b09849f8a50f48182684d1fa16b8 100644 (file)
@@ -16,7 +16,6 @@ my $msg2text = sub {
     my ($level, $msg) = @_;
 
     chomp $msg;
-
     return '' if !$msg;
 
     my $res = '';
@@ -38,10 +37,9 @@ sub log {
     my ($self, $level, $msg) = @_;
 
     chomp $msg;
-
     return if !$msg;
 
-    print &$msg2text($level, $msg);
+    print $msg2text->($level, $msg);
 }
 
 sub cmd {