diff --git a/clang-tools-extra/clangd/Protocol.cpp b/clang-tools-extra/clangd/Protocol.cpp --- a/clang-tools-extra/clangd/Protocol.cpp +++ b/clang-tools-extra/clangd/Protocol.cpp @@ -179,10 +179,12 @@ if (*S == "off") { Out = TraceLevel::Off; return true; - } else if (*S == "messages") { + } + if (*S == "messages") { Out = TraceLevel::Messages; return true; - } else if (*S == "verbose") { + } + if (*S == "verbose") { Out = TraceLevel::Verbose; return true; }