fix coding style

This commit is contained in:
Dietmar Maurer 2013-07-15 13:11:28 +02:00
parent be19058305
commit 29b1952991

View File

@ -1050,7 +1050,7 @@ sub print_drivedevice_full {
my $path = ''; my $path = '';
if (drive_is_cdrom($drive)) { if (drive_is_cdrom($drive)) {
$devicetype = 'cd'; $devicetype = 'cd';
} else { } else {
if ($drive->{file} =~ m|^/|) { if ($drive->{file} =~ m|^/|) {
$path = $drive->{file}; $path = $drive->{file};
} else { } else {
@ -1058,10 +1058,9 @@ sub print_drivedevice_full {
} }
if($path =~ m/^iscsi\:\/\//){ if($path =~ m/^iscsi\:\/\//){
$devicetype = 'generic'; $devicetype = 'generic';
} } else {
else { $devicetype = 'block' if path_is_scsi($path);
$devicetype = 'block' if path_is_scsi($path);
} }
} }