Skip to content

Commit

Permalink
scopelint fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlaprade authored and apbendi committed Nov 22, 2022
1 parent 6f543a6 commit 88ade45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/ATokenNaive.sol
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ contract ATokenNaive is AToken {
/// @param proposalId The proposalId in the associated Governor
/// @param support The depositor's vote preferences in accordance with the `VoteType` enum.
function expressVote(uint256 proposalId, uint8 support) external {
require(
!hasCastVotesOnProposal[proposalId],
"too late to express, votes already cast"
);
require(!hasCastVotesOnProposal[proposalId], "too late to express, votes already cast");
uint256 weight = getPastDeposits(msg.sender, governor.proposalSnapshot(proposalId));
require(weight > 0, "no weight");

Expand Down
7 changes: 2 additions & 5 deletions test/AaveAtokenFork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ contract VoteTest is AaveAtokenForkTest {
// Submit votes on behalf of the pool.
aToken.castVote(_proposalId);

(uint256 _againstVotes, uint256 _forVotes, /*uint256 _abstainVotes */) =
(uint256 _againstVotes, uint256 _forVotes, /*uint256 _abstainVotes */ ) =
governor.proposalVotes(_proposalId);

// userA's vote *should* have beaten userB's, but it won't.
Expand Down Expand Up @@ -1486,10 +1486,7 @@ contract VoteTest is AaveAtokenForkTest {
aToken.expressVote(_proposalId, _supportType);
}

function _testCannotCastVoteWithoutVotesExpressed(
address _who,
uint8 _supportType
) private {
function _testCannotCastVoteWithoutVotesExpressed(address _who, uint8 _supportType) private {
// Deposit some funds.
_mintGovAndSupplyToAave(_who, 1 ether);

Expand Down

0 comments on commit 88ade45

Please sign in to comment.