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