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/cmVisualStudioSlnData.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/cmVisualStudioSlnData.cxx')
-rw-r--r-- | Source/cmVisualStudioSlnData.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmVisualStudioSlnData.cxx b/Source/cmVisualStudioSlnData.cxx index da5a56c..98bbc34 100644 --- a/Source/cmVisualStudioSlnData.cxx +++ b/Source/cmVisualStudioSlnData.cxx @@ -26,8 +26,7 @@ const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByGUID( auto it(ProjectsByGUID.find(projectGUID)); if (it != ProjectsByGUID.end()) return it->second; - else - return cm::nullopt; + return cm::nullopt; } const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByName( @@ -36,8 +35,7 @@ const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByName( auto it(ProjectNameIndex.find(projectName)); if (it != ProjectNameIndex.end()) return it->second->second; - else - return cm::nullopt; + return cm::nullopt; } std::vector<cmSlnProjectEntry> cmSlnData::GetProjects() const |