From a39384eda7a3a91314f41fd689e7877c909e1385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Wed, 23 Jul 2014 15:04:40 +0200 Subject: [PATCH] Simplify --- src/modules/partition/FillGlobalStorageJob.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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(); }