mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use empty() instead of size() == 0
This commit is contained in:
@@ -509,7 +509,7 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
||||
bool const compilationSuccess = m_compilerStack.state() == CompilerStack::State::CompilationSuccessful;
|
||||
|
||||
/// Inconsistent state - stop here to receive error reports from users
|
||||
if (!compilationSuccess && (errors.size() == 0))
|
||||
if (!compilationSuccess && errors.empty())
|
||||
return formatFatalError("InternalCompilerError", "No error reported, but compilation failed.");
|
||||
|
||||
Json::Value output = Json::objectValue;
|
||||
|
||||
Reference in New Issue
Block a user