mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
remove unnecessary brackets
This commit is contained in:
parent
d96ab027c9
commit
2549184205
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user