Skip to content

Commit

Permalink
fix(PrizePool): simplify _isControlled condition (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierrickGT committed Oct 14, 2021
1 parent 9099bf5 commit 4b9d122
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions contracts/prize-pool/PrizePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,7 @@ abstract contract PrizePool is IPrizePool, Ownable, ReentrancyGuard, IERC721Rece
/// @param _controlledToken The address of the token to check
/// @return True if the token is a controlled token, false otherwise
function _isControlled(ITicket _controlledToken) internal view returns (bool) {
if (ticket == _controlledToken) {
return true;
}

return false;
return (ticket == _controlledToken);
}

/// @notice Allows the owner to set a balance cap per `token` for the pool.
Expand Down

0 comments on commit 4b9d122

Please sign in to comment.