Skip to content

Commit

Permalink
fix: remove redundant non-zero check (TRST-R09)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol committed Dec 5, 2024
1 parent c8ede7a commit 4d62209
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ abstract contract DataServiceFees is DataService, DataServiceFeesV1Storage, IDat
* @param _claimId The ID of the stake claim
*/
function _getNextStakeClaim(bytes32 _claimId) private view returns (bytes32) {
StakeClaim memory claim = claims[_claimId];
require(claim.createdAt != 0, DataServiceFeesClaimNotFound(_claimId));
return claim.nextClaim;
return claims[_claimId].nextClaim;
}

/**
Expand Down

0 comments on commit 4d62209

Please sign in to comment.