[pve-devel] [PATCH 14/16] PVE::INotify::write_network_interfaces: readability

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jun 24 14:33:28 CEST 2015


---
 src/PVE/INotify.pm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index 13c55bc..8b89488 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -1309,12 +1309,10 @@ NETWORKDOC
 	return $p1 <=> $p2 if $p1 != $p2;
 
 	return $a cmp $b;
-		       } keys %$ifaces) {
-
-	my $d = $ifaces->{$iface};
-
+    } keys %$ifaces) {
 	next if $printed->{$iface};
 
+	my $d = $ifaces->{$iface};
 	if (@options && $options[0]->[0] < $d->{priority}) {
 	    do {
 		$raw .= (shift @options)->[1] . "\n";
-- 
2.1.4





More information about the pve-devel mailing list