diff options
author | Brad King <brad.king@kitware.com> | 2021-05-10 15:49:20 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-11 15:08:08 -0400 |
commit | 4281cd15dba47a802889dfc891470239db91dd96 (patch) | |
tree | c8a7e8575d5cbe786a5a126a3c7cb613dd7ee8da | |
parent | ee87e53d3732a6482841c01c16e89f2822137d0e (diff) | |
download | cmake-4281cd15dba47a802889dfc891470239db91dd96.tar.gz |
clang-tidy: fix `bugprone-redundant-branch-condition`
-rw-r--r-- | Source/CPack/cpack.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index 85c13ada76..a778939033 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -341,7 +341,7 @@ int main(int argc, char const* const* argv) cmMakefile* mf = &globalMF; cmCPack_Log(&log, cmCPackLog::LOG_VERBOSE, "Specified generator: " << gen << std::endl); - if (parsed && !mf->GetDefinition("CPACK_PACKAGE_NAME")) { + if (!mf->GetDefinition("CPACK_PACKAGE_NAME")) { cmCPack_Log(&log, cmCPackLog::LOG_ERROR, "CPack project name not specified" << std::endl); parsed = 0; |