From 09f70b7def505c5b6ffa50a8ced0172128b35a71 Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Mon, 8 Apr 2024 15:38:46 +0800 Subject: [PATCH] refactor: Tweak to !hasPausableRole[msg.sender] --- src/PausableRole.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PausableRole.sol b/src/PausableRole.sol index 23fe35f9..d9ed433b 100644 --- a/src/PausableRole.sol +++ b/src/PausableRole.sol @@ -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(); _; }