remove redundant check
This commit is contained in:
parent
ff3aa67510
commit
8c0cb2a2d5
|
@ -95,7 +95,7 @@ contract DelegationAbstract is InstanceAbstract, Delegation {
|
||||||
}
|
}
|
||||||
DelegateSet memory d = getMemoryAt(checkpoints, _block);
|
DelegateSet memory d = getMemoryAt(checkpoints, _block);
|
||||||
// Case user set delegate to parentDelegation address
|
// 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 Delegation(parentDelegation).delegatedToAt(_who, _block);
|
||||||
}
|
}
|
||||||
return d.to;
|
return d.to;
|
||||||
|
|
Loading…
Reference in New Issue