minor refactor of readURL
This commit is contained in:
parent
5c83bf3123
commit
dfad007b60
|
@ -54,9 +54,9 @@ readURL
|
||||||
-- ^ the connection
|
-- ^ the connection
|
||||||
-> IO (Maybe GemURL)
|
-> IO (Maybe GemURL)
|
||||||
readURL conn =
|
readURL conn =
|
||||||
strFromConn inBufSize conn >>= \case
|
strFromConn inBufSize conn >>= return . \case
|
||||||
Nothing -> return Nothing
|
Nothing -> Nothing
|
||||||
Just str -> return $ decodeGemURL str
|
Just str -> decodeGemURL str
|
||||||
|
|
||||||
-- | Sends a 'GemResponse' to a 'Connection'
|
-- | Sends a 'GemResponse' to a 'Connection'
|
||||||
sendResponse
|
sendResponse
|
||||||
|
|
Loading…
Reference in New Issue
Block a user