remove redundant check

This commit is contained in:
Ricardo Guilherme Schmidt 2019-02-20 02:41:01 -03:00
parent ff3aa67510
commit 8c0cb2a2d5
No known key found for this signature in database
GPG Key ID: BFB3F5C8ED618A94
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ contract DelegationAbstract is InstanceAbstract, Delegation {
}
DelegateSet memory d = getMemoryAt(checkpoints, _block);
// Case user set delegate to parentDelegation address
if (d.to == parentDelegation && d.to != address(0x0)) {
if (d.to == parentDelegation) {
return Delegation(parentDelegation).delegatedToAt(_who, _block);
}
return d.to;