mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 12:05:50 +00:00
Reflect empty string
MarkedString::value is a mandatory field and the client may complain if `value` does not exist.
This commit is contained in:
parent
60febe6e9d
commit
c6135f5de0
@ -67,8 +67,6 @@ void Reflect(Writer& visitor, std::string& value) {
|
||||
|
||||
// ReflectMember
|
||||
void ReflectMember(Writer& visitor, const char* name, std::string& value) {
|
||||
if (value.empty())
|
||||
return;
|
||||
visitor.Key(name);
|
||||
Reflect(visitor, value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user