Skip to content

Commit 83c50d8

Browse files
committed
forge fmt
1 parent 3d058c7 commit 83c50d8

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/FlexVotingBase.sol

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ abstract contract FlexVotingBase {
8686
IVotingToken(GOVERNOR.token()).delegate(address(this));
8787
}
8888

89-
function _applyDeltaToCheckpoint(
90-
Checkpoints.Trace208 storage _checkpoint,
91-
int256 _delta
92-
) internal returns (uint208 _prevTotal, uint208 _newTotal) {
89+
function _applyDeltaToCheckpoint(Checkpoints.Trace208 storage _checkpoint, int256 _delta)
90+
internal
91+
returns (uint208 _prevTotal, uint208 _newTotal)
92+
{
9393
// The casting in this function is safe since:
9494
// - if oldTotal + delta > int256.max it will panic and revert.
9595
// - if |delta| <= oldTotal there is no risk of wrapping
@@ -115,10 +115,7 @@ abstract contract FlexVotingBase {
115115
}
116116

117117
/// @dev Checkpoints internal voting weight of `user` after applying `_delta`.
118-
function _checkpointVoteWeightOf(
119-
address _user,
120-
int256 _delta
121-
) internal virtual {
118+
function _checkpointVoteWeightOf(address _user, int256 _delta) internal virtual {
122119
_applyDeltaToCheckpoint(voteWeightCheckpoints[_user], _delta);
123120
}
124121

test/MockFlexVotingDelegatableClient.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import {FlexVotingBase} from "src/FlexVotingBase.sol";
99
contract MockFlexVotingDelegatableClient is MockFlexVotingClient, FlexVotingDelegatable {
1010
constructor(address _governor) MockFlexVotingClient(_governor) {}
1111

12-
function _checkpointVoteWeightOf(
13-
address _user,
14-
int256 _delta
15-
) internal override(FlexVotingBase, FlexVotingDelegatable) {
12+
function _checkpointVoteWeightOf(address _user, int256 _delta)
13+
internal
14+
override(FlexVotingBase, FlexVotingDelegatable)
15+
{
1616
return FlexVotingDelegatable._checkpointVoteWeightOf(_user, _delta);
1717
}
1818
}

0 commit comments

Comments
 (0)