diff --git a/src/modules/partition/FillGlobalStorageJob.cpp b/src/modules/partition/FillGlobalStorageJob.cpp index d16b33338..344df9a20 100644 --- a/src/modules/partition/FillGlobalStorageJob.cpp +++ b/src/modules/partition/FillGlobalStorageJob.cpp @@ -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(); }