Skip to content

Commit

Permalink
Remove empty code paths from proposal processing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
apbendi committed Apr 25, 2020
1 parent 63e8ad7 commit 019217f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions contracts/Moloch.sol
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ contract Moloch {

// PROPOSAL PASSED
if (didPass && !proposal.aborted && hasFunds) {

proposal.didPass = true;

uint256 start = block.timestamp;
Expand All @@ -486,10 +485,6 @@ contract Moloch {
});

grants.push(grant);

// PROPOSAL FAILED OR ABORTED
} else {
// TODO: anything?
}

// send msg.sender the processingReward
Expand Down Expand Up @@ -529,17 +524,12 @@ contract Moloch {

// PROPOSAL PASSED
if (didPass && !proposal.aborted) {

proposal.didPass = true;

Grant storage grant = grants[proposal.grantMeta];
grant.wasRevoked = true;

guildBank.revokeStream(grant.streamId);

// PROPOSAL FAILED OR ABORTED
} else {
// TODO: anything?
}

// send msg.sender the processingReward
Expand Down

0 comments on commit 019217f

Please sign in to comment.