minor refactor of readURL
This commit is contained in:
parent
5c83bf3123
commit
dfad007b60
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user