Skip to content

Commit

Permalink
Reflect empty string
Browse files Browse the repository at this point in the history
MarkedString::value is a mandatory field and the client may complain if `value` does not exist.
  • Loading branch information
MaskRay authored and jacobdufault committed Dec 12, 2017
1 parent 3ee8038 commit 0d4c603
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/serializer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0d4c603

Please sign in to comment.