mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Turn if statement into assertion
This commit is contained in:
parent
3817515015
commit
7e018179a1
@ -191,9 +191,7 @@ vector<pair<util::FixedHash<4>, FunctionTypePointer>> const& ContractDefinition:
|
||||
functions.push_back(TypeProvider::function(*v));
|
||||
for (FunctionTypePointer const& fun: functions)
|
||||
{
|
||||
if (!fun->interfaceFunctionType())
|
||||
// Fails hopefully because we already registered the error
|
||||
continue;
|
||||
solAssert(fun->interfaceFunctionType(), "");
|
||||
string functionSignature = fun->externalSignature();
|
||||
if (signaturesSeen.count(functionSignature) == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user