From fc3c9663bdebb54226d3a64621bce8ef89f83789 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 16 Aug 2024 14:14:47 -0300 Subject: [PATCH] doc: styling alignment on multiline returns --- contracts/CrossChainProofOfHumanity.sol | 9 ++++----- contracts/extending-old/ProofOfHumanityExtended.sol | 10 ++++------ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/contracts/CrossChainProofOfHumanity.sol b/contracts/CrossChainProofOfHumanity.sol index c42dd3e..c556195 100644 --- a/contracts/CrossChainProofOfHumanity.sol +++ b/contracts/CrossChainProofOfHumanity.sol @@ -384,11 +384,10 @@ contract CrossChainProofOfHumanity is ICrossChainProofOfHumanity { bytes20 humanityId = accountHumanity[_account]; CrossChainHumanity memory humanity = humanityData[humanityId]; - return - !humanity.isHomeChain && - humanityId != bytes20(0x0) && - humanity.owner == _account && - humanity.expirationTime > block.timestamp; + return !humanity.isHomeChain + && humanityId != bytes20(0x0) + && humanity.owner == _account + && humanity.expirationTime > block.timestamp; } /** @notice Get the owner of a humanity. Returns null address if not claimed diff --git a/contracts/extending-old/ProofOfHumanityExtended.sol b/contracts/extending-old/ProofOfHumanityExtended.sol index 52b8257..32631bd 100644 --- a/contracts/extending-old/ProofOfHumanityExtended.sol +++ b/contracts/extending-old/ProofOfHumanityExtended.sol @@ -1524,9 +1524,8 @@ contract ProofOfHumanityExtended is IProofOfHumanity, IArbitrable, IEvidence { function isClaimed(bytes20 _humanityId) external view override returns (bool) { Humanity storage humanity = humanityData[_humanityId]; // Check this contract's state first and, if humanity not claimed here, check fork module. - return - (humanity.owner != address(0x0) && block.timestamp < humanity.expirationTime) || - forkModule.isRegistered(address(_humanityId)); + return (humanity.owner != address(0x0) && block.timestamp < humanity.expirationTime) + || forkModule.isRegistered(address(_humanityId)); } /** @notice Check whether the account corresponds to a claimed humanity. @@ -1536,9 +1535,8 @@ contract ProofOfHumanityExtended is IProofOfHumanity, IArbitrable, IEvidence { function isHuman(address _account) public view override returns (bool) { Humanity storage humanity = humanityData[accountHumanity[_account]]; // Check this contract's state first and, if account not registered here, check fork module. - return - (humanity.owner == _account && block.timestamp < humanity.expirationTime) || - forkModule.isRegistered(_account); + return (humanity.owner == _account && block.timestamp < humanity.expirationTime) + || forkModule.isRegistered(_account); } /** @notice Get the owner of a humanity.