diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-22 18:58:40 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-29 17:39:29 (GMT) |
commit | b72c45e39fa9dd5870046bb5cf25d33049006bd5 (patch) | |
tree | 5bbeafd0dc942663e48b999e6d41d0446e1d2b1d /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 07172aa31ec468baea0dc3e52ce6f706f55d6f12 (diff) | |
download | CMake-b72c45e39fa9dd5870046bb5cf25d33049006bd5.zip CMake-b72c45e39fa9dd5870046bb5cf25d33049006bd5.tar.gz CMake-b72c45e39fa9dd5870046bb5cf25d33049006bd5.tar.bz2 |
clang-tidy: fix `readability-else-after-return` lints
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index 34bc963..2987360 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -518,13 +518,12 @@ std::string cmGlobalVisualStudioGenerator::GetStartupProjectName( std::string startup = *n; if (this->FindTarget(startup)) { return startup; - } else { - root->GetMakefile()->IssueMessage( - MessageType::AUTHOR_WARNING, - "Directory property VS_STARTUP_PROJECT specifies target " - "'" + - startup + "' that does not exist. Ignoring."); } + root->GetMakefile()->IssueMessage( + MessageType::AUTHOR_WARNING, + "Directory property VS_STARTUP_PROJECT specifies target " + "'" + + startup + "' that does not exist. Ignoring."); } // default, if not specified |