From fe944e47e70c69b48420f12cfc799f4faead805f Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@theqtcompany.com>
Date: Tue, 19 Jan 2016 14:07:16 +0100
Subject: [PATCH] CMake: Simplify code a little

Change-Id: Ifdfac9bb844c9ab201378a6047714ab64ccebd66
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
---
 src/plugins/cmakeprojectmanager/cmakeproject.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/plugins/cmakeprojectmanager/cmakeproject.cpp b/src/plugins/cmakeprojectmanager/cmakeproject.cpp
index 8eba0720cfa..ec8df0716de 100644
--- a/src/plugins/cmakeprojectmanager/cmakeproject.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeproject.cpp
@@ -240,10 +240,7 @@ QStringList CMakeProject::getCXXFlagsFor(const CMakeBuildTarget &buildTarget, QB
 
 bool CMakeProject::parseCMakeLists()
 {
-    if (!activeTarget() ||
-        !activeTarget()->activeBuildConfiguration()) {
-        return false;
-    }
+    QTC_ASSERT(activeTarget() && activeTarget()->activeBuildConfiguration(), return false);
 
     CMakeBuildConfiguration *activeBC = static_cast<CMakeBuildConfiguration *>(activeTarget()->activeBuildConfiguration());
     foreach (Core::IDocument *document, Core::DocumentModel::openedDocuments())
-- 
GitLab