Simplify the assert condition

Change-Id: I59d6fe1bcfeabc33b24efc68c6e691d4e549faf7
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Jarek Kobus
2021-07-01 14:40:22 +02:00
parent 8ff74cc46c
commit 4aaae4939a

View File

@@ -439,9 +439,9 @@ void TestCodeParser::onFinished()
void TestCodeParser::onPartialParsingFinished()
{
QTC_ASSERT(m_fullUpdatePostponed != m_partialUpdatePostponed
|| ((m_fullUpdatePostponed || m_partialUpdatePostponed) == false),
m_partialUpdatePostponed = false;m_postponedFiles.clear(););
// fail only when both are true
QTC_ASSERT(!m_fullUpdatePostponed || !m_partialUpdatePostponed,
m_partialUpdatePostponed = false; m_postponedFiles.clear());
if (m_fullUpdatePostponed) {
m_fullUpdatePostponed = false;
qCDebug(LOG) << "calling updateTestTree (onPartialParsingFinished)";