match return => return match

This commit is contained in:
debris 2016-01-12 16:32:51 +01:00
parent 36e250bcc9
commit a5e1db11ca

View File

@ -427,9 +427,9 @@ impl<'a> Ext for Externalities<'a> {
&mut OutputPolicy::InitContract => {
let return_cost = data.len() as u64 * self.schedule.create_data_gas as u64;
if return_cost > gas {
match self.schedule.exceptional_failed_code_deposit {
true => return Err(evm::Error::OutOfGas),
false => return Ok(gas)
return match self.schedule.exceptional_failed_code_deposit {
true => Err(evm::Error::OutOfGas),
false => Ok(gas)
}
}
let mut code = vec![];