Merge pull request #8442 from JosJuice/data-partition-missing

VolumeVerifier: Fix "The data partition is missing" false positive
This commit is contained in:
Mat M 2019-10-30 05:36:36 -04:00 committed by GitHub
commit 4f5badb9ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ void VolumeVerifier::CheckPartitions()
AddProblem(Severity::Low, Common::GetStringT("The update partition is missing."));
const bool has_data_partition =
std::find(types.cbegin(), types.cend(), PARTITION_DATA) == types.cend();
std::find(types.cbegin(), types.cend(), PARTITION_DATA) != types.cend();
if (!m_is_datel && !has_data_partition)
AddProblem(Severity::High, Common::GetStringT("The data partition is missing."));