Skip to content

Commit b713748

Browse files
committed
minor fix
1 parent 6ff637c commit b713748

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

contracts/tokens/SecurityToken.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,10 +538,7 @@ contract SecurityToken is ERC20, ReentrancyGuard, SecurityTokenStorage, IERC1594
538538
function _returnPartition(uint256 _beforeBalance, uint256 _afterBalance, uint256 _value) internal pure returns(bytes32 toPartition) {
539539
// return LOCKED only when the transaction `_value` should be equal to the change in the LOCKED partition
540540
// balance otherwise return UNLOCKED
541-
if (_afterBalance.sub(_beforeBalance) == _value)
542-
toPartition = LOCKED;
543-
// Returning the same partition UNLOCKED
544-
toPartition = UNLOCKED;
541+
toPartition = _afterBalance.sub(_beforeBalance) == _value ? LOCKED : UNLOCKED; // Returning the same partition UNLOCKED
545542
}
546543

547544
///////////////////////

0 commit comments

Comments
 (0)