Skip to content

Commit

Permalink
feat: remove unneeded check due to typescript requiring property
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinWoetzel committed Apr 18, 2024
1 parent 91d7978 commit e351fa5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/contracts/services/batchQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ const batchQuerySingleBatch$ = ({
switchMap((response) => {
// create an error if stale node is detected
if (nodeHealthValidationConfig
&& nodeHealthValidationConfig.minBlockHeight
&& response.batch.block_height < nodeHealthValidationConfig.minBlockHeight
&& response.batch.block_height < nodeHealthValidationConfig.minBlockHeight
) {
// callback for when stale node is detected. Useful for error logging.
if (typeof nodeHealthValidationConfig.onStaleNodeDetected === 'function') {
Expand Down

0 comments on commit e351fa5

Please sign in to comment.