Author: Kadir Cetinkaya Date: 2020-09-11T11:31:16+02:00 New Revision: bceca7a996248aba44c3e4b4752634114650e6ac
URL: https://github.com/llvm/llvm-project/commit/bceca7a996248aba44c3e4b4752634114650e6ac DIFF: https://github.com/llvm/llvm-project/commit/bceca7a996248aba44c3e4b4752634114650e6ac.diff LOG: [clangd][NFC] Get rid of an `else after return` Added: Modified: clang-tools-extra/clangd/ClangdLSPServer.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/ClangdLSPServer.cpp b/clang-tools-extra/clangd/ClangdLSPServer.cpp index 15ef89cb34fa..6ebb71c3b4d1 100644 --- a/clang-tools-extra/clangd/ClangdLSPServer.cpp +++ b/clang-tools-extra/clangd/ClangdLSPServer.cpp @@ -57,7 +57,7 @@ llvm::Optional<int64_t> decodeVersion(llvm::StringRef Encoded) { int64_t Result; if (llvm::to_integer(Encoded, Result, 10)) return Result; - else if (!Encoded.empty()) // Empty can be e.g. diagnostics on close. + if (!Encoded.empty()) // Empty can be e.g. diagnostics on close. elog("unexpected non-numeric version {0}", Encoded); return llvm::None; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits