Skip to content

Commit

Permalink
refactor: Tweak to !hasPausableRole[msg.sender]
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMist committed Apr 8, 2024
1 parent a528056 commit 09f70b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PausableRole.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract contract PausableRole is IPausableRole, Ownable, Pausable {
mapping(address => bool) public hasPausableRole;

modifier onlyPausableRoleOrOwner() {
if (msg.sender != owner() && hasPausableRole[msg.sender] == false) revert NoPausableRole();
if (msg.sender != owner() && !hasPausableRole[msg.sender]) revert NoPausableRole();
_;
}

Expand Down

0 comments on commit 09f70b7

Please sign in to comment.