Skip to content

Commit

Permalink
voting: simplify issuer overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
facuspagnuolo committed Jul 3, 2019
1 parent a1d6b07 commit 7a39f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/voting/contracts/Voting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ contract Voting is IForwarder, AragonApp {

function _overwriteIssuerIfNecessary(Vote storage vote_, address _voter) private {
address _currentIssuer = vote_.issuers[_voter];
if (_currentIssuer != address(0) && _currentIssuer != _voter) {
if (_currentIssuer != address(0)) {
vote_.issuers[_voter] = address(0);
}
}
Expand Down

0 comments on commit 7a39f6a

Please sign in to comment.