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
d8173fb158
commit
fc50f8ff96
@ -99,9 +99,7 @@ std::shared_ptr<Object> ObjectParser::parseObject(Object* _containingObject)
|
|||||||
fatalParserError(8143_error, "Expected keyword \"data\" or \"object\" or \"}\".");
|
fatalParserError(8143_error, "Expected keyword \"data\" or \"object\" or \"}\".");
|
||||||
}
|
}
|
||||||
if (_containingObject)
|
if (_containingObject)
|
||||||
{
|
|
||||||
addNamedSubObject(*_containingObject, ret->name, ret);
|
addNamedSubObject(*_containingObject, ret->name, ret);
|
||||||
}
|
|
||||||
|
|
||||||
expectToken(Token::RBrace);
|
expectToken(Token::RBrace);
|
||||||
|
|
||||||
|
@ -133,9 +133,8 @@ public:
|
|||||||
|
|
||||||
auto scanner = make_shared<Scanner>(_charStream);
|
auto scanner = make_shared<Scanner>(_charStream);
|
||||||
|
|
||||||
if (!m_inputWasCodeBlock && scanner->currentToken() == Token::LBrace) {
|
if (!m_inputWasCodeBlock && scanner->currentToken() == Token::LBrace)
|
||||||
m_inputWasCodeBlock = true;
|
m_inputWasCodeBlock = true;
|
||||||
}
|
|
||||||
|
|
||||||
auto content = parser.parse(scanner, false);
|
auto content = parser.parse(scanner, false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user