Skip to content
Snippets Groups Projects
Commit 0fece176 authored by Jens Nolte's avatar Jens Nolte
Browse files

Remove unnecessary brackets, simplify pattern match

parent ca24983b
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,7 @@ resourceManagerIsDisposed rm = unsafeAwaitSTM $
resourceManagerIsDisposing :: ResourceManager -> Awaitable ()
resourceManagerIsDisposing rm = unsafeAwaitSTM $
readTVar (resourceManagerState rm) >>= \case
(ResourceManagerNormal _ _ _) -> retry
ResourceManagerNormal {} -> retry
_ -> pure ()
......
......@@ -141,7 +141,7 @@ startSchedulerThread scheduler = getDisposer <$> async (schedulerThread `finally
case uncons timers of
Nothing -> pure timers
Just (timer, others) -> do
if (time timer) <= now
if time timer <= now
then do
fireTimer timer
pure others
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment