Skip to content

Commit ab288c1

Browse files
committed
fixed mistake in _isPeriodProven , and fixed lint issues
1 parent a969679 commit ab288c1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

service_contracts/src/FilecoinWarmStorageService.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,10 +1527,7 @@ contract FilecoinWarmStorageService is
15271527
}
15281528
// return provenPeriods[dataSetId][periodId];
15291529
uint256 isProven = provenPeriods[dataSetId][periodId >> 8] & (1 << (periodId & 255));
1530-
if(isProven == 1){
1531-
return true;
1532-
}
1533-
return false;
1530+
return isProven != 0;
15341531
}
15351532

15361533
function _calcPeriodDeadline(uint256 dataSetId, uint256 periodId) private view returns (uint256) {

0 commit comments

Comments
 (0)