Skip to content

Commit

Permalink
doc: styling alignment on multiline returns
Browse files Browse the repository at this point in the history
  • Loading branch information
martillansky committed Aug 16, 2024
1 parent 3be26f7 commit fc3c966
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 4 additions & 5 deletions contracts/CrossChainProofOfHumanity.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions contracts/extending-old/ProofOfHumanityExtended.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit fc3c966

Please sign in to comment.