Skip to content

Commit

Permalink
Use idiomatic rescript "if" syntax on match arm
Browse files Browse the repository at this point in the history
  • Loading branch information
JonoPrest authored Jan 30, 2025
1 parent 1a2d659 commit 45803a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let fetchNext = async (
sourceManager.waitingForNewBlockStateId = Some(stateId)
let currentBlockHeight = await waitForNewBlock(~currentBlockHeight, ~logger)
switch sourceManager.waitingForNewBlockStateId {
| Some(waitingStateId) when waitingStateId === stateId => {
| Some(waitingStateId) if waitingStateId === stateId => {
sourceManager.waitingForNewBlockStateId = None
onNewBlock(~currentBlockHeight)
}
Expand Down

0 comments on commit 45803a9

Please sign in to comment.