style: remove redundant else

This commit is contained in:
x100111010 2025-03-18 14:06:43 +01:00
parent 03cc7dfc19
commit 7c951d5079

View File

@ -123,9 +123,8 @@ func (c *Calculator) CalculateTransactionStorageMass(transaction *externalapi.Do
if harmonicOuts < arithmeticIns {
// underflow
return 0
} else {
return harmonicOuts - arithmeticIns
}
return harmonicOuts - arithmeticIns
}
// CalculateTransactionOverallMass calculates the overall mass of the transaction including compute and storage mass components (see KIP-0009)