Skip to content

Commit 4d62209

Browse files
committed
fix: remove redundant non-zero check (TRST-R09)
1 parent c8ede7a commit 4d62209

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/horizon/contracts/data-service/extensions/DataServiceFees.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ abstract contract DataServiceFees is DataService, DataServiceFeesV1Storage, IDat
129129
* @param _claimId The ID of the stake claim
130130
*/
131131
function _getNextStakeClaim(bytes32 _claimId) private view returns (bytes32) {
132-
StakeClaim memory claim = claims[_claimId];
133-
require(claim.createdAt != 0, DataServiceFeesClaimNotFound(_claimId));
134-
return claim.nextClaim;
132+
return claims[_claimId].nextClaim;
135133
}
136134

137135
/**

0 commit comments

Comments
 (0)