We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aca3cec commit 763f039Copy full SHA for 763f039
src/Simplex/Messaging/Notifications/Server/Push/WebPush.hs
@@ -69,9 +69,7 @@ liftPPWPError :: IO a -> ExceptT PushProviderError IO a
69
liftPPWPError = liftPPWPError' toPPWPError
70
71
liftPPWPError' :: (SomeException -> PushProviderError) -> IO a -> ExceptT PushProviderError IO a
72
-liftPPWPError' err a = do
73
- res <- liftIO $ try @SomeException a
74
- either (throwError . err) return res
+liftPPWPError' err a = liftIO (try @SomeException a) >>= either (throwError . err) return
75
76
toPPWPError :: SomeException -> PushProviderError
77
toPPWPError e = case fromException e of
0 commit comments