Skip to content

Commit 5a4a550

Browse files
committed
fix: avoid boolean literals as conditionals
Signed-off-by: Tomás Migone <[email protected]>
1 parent 7bac074 commit 5a4a550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/horizon/contracts/staking/HorizonStakingExtension.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ contract HorizonStakingExtension is HorizonStakingBase, IHorizonStakingExtension
4040
* @dev Check if the caller is the slasher.
4141
*/
4242
modifier onlySlasher() {
43-
require(__DEPRECATED_slashers[msg.sender] == true, "!slasher");
43+
require(__DEPRECATED_slashers[msg.sender], "!slasher");
4444
_;
4545
}
4646

0 commit comments

Comments
 (0)