Skip to content

Commit 30a19ac

Browse files
refactor: check is done after the body of the fuction
1 parent 105cfd9 commit 30a19ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/StRIFToken.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ contract StRIFToken is
111111

112112
//checks CollectiveRewards for stake
113113
modifier _checkCollectiveRewardsForStake(address staker, uint256 value) {
114+
_;
114115
if (collectiveRewardsCheck != address(0)) {
115116
try ICollectiveRewardsCheck(collectiveRewardsCheck).canWithdraw(staker, value) returns (
116117
bool canWithdraw
@@ -128,7 +129,6 @@ contract StRIFToken is
128129
}
129130
}
130131
}
131-
_;
132132
}
133133

134134
// checks that received address has method which can successfully be called

0 commit comments

Comments
 (0)