mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-23 22:15:54 +00:00
style: remove redundant else
This commit is contained in:
parent
03cc7dfc19
commit
7c951d5079
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user