diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-21 08:06:12 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-04-21 08:44:07 (GMT) |
commit | b26577c92ae59fa23be49bcaa3404efe36646e1a (patch) | |
tree | 012e6dd431092905593339451118cf434aefa206 /Source/cmRST.cxx | |
parent | 1b0c7bca5ede6eb3965cb23471c6530a08d0d2d5 (diff) | |
download | CMake-b26577c92ae59fa23be49bcaa3404efe36646e1a.zip CMake-b26577c92ae59fa23be49bcaa3404efe36646e1a.tar.gz CMake-b26577c92ae59fa23be49bcaa3404efe36646e1a.tar.bz2 |
clang-tidy: remove else after break and continue
Diffstat (limited to 'Source/cmRST.cxx')
-rw-r--r-- | Source/cmRST.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmRST.cxx b/Source/cmRST.cxx index 70ffc7d..938cad9 100644 --- a/Source/cmRST.cxx +++ b/Source/cmRST.cxx @@ -96,14 +96,14 @@ void cmRST::ProcessModule(std::istream& is) if (line == "#") { this->ProcessLine(""); continue; - } else if (line.substr(0, 2) == "# ") { + } + if (line.substr(0, 2) == "# ") { this->ProcessLine(line.substr(2, line.npos)); continue; - } else { - rst = ""; - this->Reset(); - this->OutputLinePending = true; } + rst = ""; + this->Reset(); + this->OutputLinePending = true; } if (line == "#.rst:") { rst = "#"; |