Skip to content

Commit

Permalink
perf(isContract): don't check zero address
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlee42 committed Feb 23, 2024
1 parent 41857a2 commit 6cbb989
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions contracts/LockingPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -970,9 +970,6 @@ contract LockingPool is ILockingPool, OwnableUpgradeable, PausableUpgradeable {
}

function isContract(address _target) internal view returns (bool) {
if (_target == address(0)) {
return false;
}
return _target.code.length > 0;
}

Expand Down

0 comments on commit 6cbb989

Please sign in to comment.