UB fixed.

Forgotten return was removed.
This commit is contained in:
Maxim Kot 2018-03-25 18:21:42 +00:00 committed by Fangrui Song
parent 47aa9b8e23
commit b68b063abd
2 changed files with 1 additions and 2 deletions

View File

@ -63,7 +63,6 @@ bool ShouldDisplayMethodTiming(MethodType type) {
type != kMethodType_TextDocumentPublishDiagnostics && type != kMethodType_TextDocumentPublishDiagnostics &&
type != kMethodType_CqueryPublishInactiveRegions && type != kMethodType_CqueryPublishInactiveRegions &&
type != kMethodType_Unknown; type != kMethodType_Unknown;
return true;
} }
void PrintHelp() { void PrintHelp() {

View File

@ -5,7 +5,7 @@
#include <string> #include <string>
using MethodType = std::string; using MethodType = const char*;
extern MethodType kMethodType_Unknown; extern MethodType kMethodType_Unknown;
extern MethodType kMethodType_Exit; extern MethodType kMethodType_Exit;
extern MethodType kMethodType_TextDocumentPublishDiagnostics; extern MethodType kMethodType_TextDocumentPublishDiagnostics;