mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05:00
[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
1 changed files with 1 additions and 6 deletions
|
@ -947,12 +947,7 @@ PartitionCoreModule::revertDevice( Device* dev, bool individualRevert )
|
||||||
QList< Device* > devices;
|
QList< Device* > devices;
|
||||||
for ( DeviceInfo* const info : m_deviceInfos )
|
for ( DeviceInfo* const info : m_deviceInfos )
|
||||||
{
|
{
|
||||||
// device is a QScopedPointer
|
if ( info && !info->device.isNull() && info->device->type() == Device::Type::Disk_Device )
|
||||||
if ( !info || info->device.isNull() )
|
|
||||||
continue;
|
|
||||||
if ( info->device->type() != Device::Type::Disk_Device )
|
|
||||||
continue;
|
|
||||||
else
|
|
||||||
devices.append( info->device.data() );
|
devices.append( info->device.data() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue