Skip to content

Commit

Permalink
feat: Remove unneeded returning value in Pool function
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Aug 9, 2021
1 parent 9bf567e commit c8b8ba0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/protocol/pool/Pool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ contract Pool is VersionedInitializable, IPool, PoolStorage {
_flashLoanPremiumToProtocol = flashLoanPremiumToProtocol;
}

function _addReserveToList(address asset) internal returns (uint8) {
function _addReserveToList(address asset) internal {
uint256 reservesCount = _reservesCount;

require(reservesCount < _maxNumberOfReserves, Errors.P_NO_MORE_RESERVES_ALLOWED);
Expand All @@ -592,7 +592,6 @@ contract Pool is VersionedInitializable, IPool, PoolStorage {
_reserves[asset].id = i;
_reservesList[i] = asset;
_reservesCount = reservesCount + 1;
return i;
}
}
}
Expand Down

0 comments on commit c8b8ba0

Please sign in to comment.