Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOrme committed Apr 13, 2023
1 parent 102ed3c commit 562c21c
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions elm/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -453,15 +453,9 @@ shouldFetchStatus model currentTime =
timeToNextRead =
Maybe.map2 getDuration model.readerState.nextSchedule (Just currentTime) |> Maybe.withDefault 1
in
model.readerState.state
== Reading
-- Reader state is active, we always want to see when it finishes ASAP.
|| timeSinceLastPoll
> maxTimeBetweenPolls
-- Reader state is active, we always want to see when it finishes ASAP.
(model.readerState.state == Reading)
-- We're overdue for a poll
|| timeToNextRead
> -1



-- We're overdue for a read
|| (timeSinceLastPoll > maxTimeBetweenPolls)
-- We're overdue for a read
|| (timeToNextRead > -1)

0 comments on commit 562c21c

Please sign in to comment.