[partition] Simplify negative logic
- Instead of multiple continue statements to avoid negative cases, state the one positive case instead.
This commit is contained in:
parent
3bdbfe6bff
commit
d5f0bdd28c
@ -947,12 +947,7 @@ PartitionCoreModule::revertDevice( Device* dev, bool individualRevert )
|
||||
QList< Device* > devices;
|
||||
for ( DeviceInfo* const info : m_deviceInfos )
|
||||
{
|
||||
// device is a QScopedPointer
|
||||
if ( !info || info->device.isNull() )
|
||||
continue;
|
||||
if ( info->device->type() != Device::Type::Disk_Device )
|
||||
continue;
|
||||
else
|
||||
if ( info && !info->device.isNull() && info->device->type() == Device::Type::Disk_Device )
|
||||
devices.append( info->device.data() );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user