remove unnecessary brackets

This commit is contained in:
Daniel Lupu 2022-04-30 18:34:19 +03:00 committed by r0qs
parent d96ab027c9
commit 2549184205
No known key found for this signature in database
GPG Key ID: 61503DBA6667276C
2 changed files with 1 additions and 4 deletions

View File

@ -100,9 +100,7 @@ shared_ptr<Object> ObjectParser::parseObject(Object* _containingObject)
fatalParserError(8143_error, "Expected keyword \"data\" or \"object\" or \"}\".");
}
if (_containingObject)
{
addNamedSubObject(*_containingObject, ret->name, ret);
}
expectToken(Token::RBrace);

View File

@ -133,9 +133,8 @@ public:
auto scanner = make_shared<Scanner>(_charStream);
if (!m_inputWasCodeBlock && scanner->currentToken() == Token::LBrace) {
if (!m_inputWasCodeBlock && scanner->currentToken() == Token::LBrace)
m_inputWasCodeBlock = true;
}
auto content = parser.parse(scanner, false);