Commit 289e7fcc authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

eta-reduce isIpV6



This is not only better style, but also fixes a lint error.
Also use the infix form of `elem` to increase readability.
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent b5c3a4f2
......@@ -160,7 +160,7 @@ data HttpClientRequest = HttpClientRequest
-- | Check if a string represented address is IPv6
isIpV6 :: String -> Bool
isIpV6 ip = elem ':' ip
isIpV6 = (':' `elem`)
-- | Prepare url for the HTTP request.
prepareUrl :: (RpcCall a) => Node -> a -> String
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment