Merge pull request #13117 from ethereum/fixEmptyLinesInDocs

Remove all-whitespace lines from docs.
This commit is contained in:
Daniel Kirchner 2022-06-09 15:41:47 +02:00 committed by GitHub
commit 01a794dd31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,17 +128,17 @@ of votes.
// We found a loop in the delegation, not allowed. // We found a loop in the delegation, not allowed.
require(to != msg.sender, "Found loop in delegation."); require(to != msg.sender, "Found loop in delegation.");
} }
Voter storage delegate_ = voters[to]; Voter storage delegate_ = voters[to];
// Voters cannot delegate to accounts that cannot vote. // Voters cannot delegate to accounts that cannot vote.
require(delegate_.weight >= 1); require(delegate_.weight >= 1);
// Since `sender` is a reference, this // Since `sender` is a reference, this
// modifies `voters[msg.sender]`. // modifies `voters[msg.sender]`.
sender.voted = true; sender.voted = true;
sender.delegate = to; sender.delegate = to;
if (delegate_.voted) { if (delegate_.voted) {
// If the delegate already voted, // If the delegate already voted,
// directly add to the number of votes // directly add to the number of votes