We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37ef6ec commit f359277Copy full SHA for f359277
src/singledocparser.cpp
@@ -93,9 +93,9 @@ void SingleDocParser::HandleNode(EventHandler& eventHandler) {
93
// add non-specific tags
94
if (tag.empty())
95
tag = (token.type == Token::NON_PLAIN_SCALAR ? "!" : "?");
96
-
97
- if (token.type == Token::PLAIN_SCALAR
98
- && tag.compare("?") == 0 && IsNullString(token.value)) {
+
+ if (token.type == Token::PLAIN_SCALAR && tag == "?" &&
+ IsNullString(token.value)) {
99
eventHandler.OnNull(mark, anchor);
100
m_scanner.pop();
101
return;
0 commit comments