Simplify
This commit is contained in:
parent
484d7c4d15
commit
a39384eda7
@ -45,11 +45,7 @@ FillGlobalStorageJob::exec()
|
|||||||
QVariantList lst;
|
QVariantList lst;
|
||||||
for( auto device : m_devices )
|
for( auto device : m_devices )
|
||||||
for( auto it = PartitionIterator::begin( device ); it != PartitionIterator::end( device ); ++it)
|
for( auto it = PartitionIterator::begin( device ); it != PartitionIterator::end( device ); ++it)
|
||||||
{
|
lst << mapForPartition( *it );
|
||||||
QVariant var = mapForPartition( *it );
|
|
||||||
if ( var.isValid() )
|
|
||||||
lst << var;
|
|
||||||
}
|
|
||||||
Calamares::JobQueue::instance()->globalStorage()->insert( "partitions", lst );
|
Calamares::JobQueue::instance()->globalStorage()->insert( "partitions", lst );
|
||||||
return Calamares::JobResult::ok();
|
return Calamares::JobResult::ok();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user