[pve-devel] [PATCH v2 09/11] PVE::INotify::write_network_interfaces: readability

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Jun 25 11:54:32 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 5fce0c8..4dd4036 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -1304,12 +1304,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