From 8c0cb2a2d5b0dc7b85900bf1571d5d4c1e491da1 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt Date: Wed, 20 Feb 2019 02:41:01 -0300 Subject: [PATCH] remove redundant check --- contracts/democracy/DelegationAbstract.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/democracy/DelegationAbstract.sol b/contracts/democracy/DelegationAbstract.sol index f55a9bb..63d4ebe 100644 --- a/contracts/democracy/DelegationAbstract.sol +++ b/contracts/democracy/DelegationAbstract.sol @@ -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;