minor refactor of readURL

This commit is contained in:
Jonathan Lamothe 2021-11-19 11:03:51 -05:00
parent 5c83bf3123
commit dfad007b60

View File

@ -54,9 +54,9 @@ readURL
-- ^ the connection
-> IO (Maybe GemURL)
readURL conn =
strFromConn inBufSize conn >>= \case
Nothing -> return Nothing
Just str -> return $ decodeGemURL str
strFromConn inBufSize conn >>= return . \case
Nothing -> Nothing
Just str -> decodeGemURL str
-- | Sends a 'GemResponse' to a 'Connection'
sendResponse