Address HLint issues

This commit is contained in:
patrick brisbin 2018-01-23 08:10:29 -05:00
parent 30851ae5fb
commit 79ef8aded9
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
---
- ignore:
# https://github.com/ndmitchell/hlint/issues/427
name: Eta reduce
within: authOAuth2
- ignore: - ignore:
name: Redundant do name: Redundant do
within: spec within: spec

View File

@ -96,7 +96,7 @@ oauth2EveScoped clientId clientSecret scopes widget =
fetchEveProfile :: Manager -> OAuth2Token -> IO (Creds m) fetchEveProfile :: Manager -> OAuth2Token -> IO (Creds m)
fetchEveProfile manager token = do fetchEveProfile manager token = do
userResult <- authGetJSON manager (accessToken token) $ "https://login.eveonline.com/oauth/verify" userResult <- authGetJSON manager (accessToken token) "https://login.eveonline.com/oauth/verify"
case userResult of case userResult of
Right user -> return $ toCreds user token Right user -> return $ toCreds user token

View File

@ -95,7 +95,7 @@ oauth2SalesforceSandboxScoped scopes clientId clientSecret =
fetchSalesforceSandboxUser :: Manager -> OAuth2Token -> IO (Creds m) fetchSalesforceSandboxUser :: Manager -> OAuth2Token -> IO (Creds m)
fetchSalesforceSandboxUser manager token = do fetchSalesforceSandboxUser manager token = do
result <- authGetJSON manager (accessToken token) $ "https://test.salesforce.com/services/oauth2/userinfo" result <- authGetJSON manager (accessToken token) "https://test.salesforce.com/services/oauth2/userinfo"
case result of case result of
Right user -> return $ toCreds svcNameSb user token Right user -> return $ toCreds svcNameSb user token
Left err -> throwIO $ invalidProfileResponse svcNameSb err Left err -> throwIO $ invalidProfileResponse svcNameSb err