Skip to content

Commit

Permalink
Remove unnecessary return values from _checkpointRawBalanceOf
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlaprade committed Dec 23, 2022
1 parent e3ab13b commit cae3aa5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ATokenCheckpointed.sol
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,8 @@ contract ATokenCheckpointed is AToken {
}

/// @notice Checkpoints the _user's current raw balance.
function _checkpointRawBalanceOf(address _user)
internal
returns (uint256 _previousBalance, uint256 _currentBalance)
{
(_previousBalance, _currentBalance) = balanceCheckpoints[_user].push(_rawBalanceOf(_user));
function _checkpointRawBalanceOf(address _user) internal {
balanceCheckpoints[_user].push(_rawBalanceOf(_user));
}

/// @notice Returns the _user's balance in storage at the _blockNumber.
Expand Down

0 comments on commit cae3aa5

Please sign in to comment.